1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 16:19:43 +02:00

Bug1656: (Win) KB nav of toolbar buttons should skip disabled...

... This was broken at commit 6478895a3903, Win-specific change meant to fix
bug 1565 (tooltips did not show for diabled buttons on Win)

This easy one-line fix preserves that, fixes 1656 too.
This commit is contained in:
Paul Licameli 2017-07-21 00:56:47 -04:00
parent 59dab5222b
commit d1f7e7e46f

View File

@ -57,7 +57,7 @@ class AButton final : public wxWindow {
virtual ~ AButton();
bool AcceptsFocus() const override { return s_AcceptsFocus; }
bool AcceptsFocusFromKeyboard() const override { return true; }
bool AcceptsFocusFromKeyboard() const override { return mEnabled; }
void SetFocusFromKbd() override;