1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Fix Mac tabbing to sliders and meters, analogously to buttons...

... And make sure they don't steal focus when clicked or double clicked
This commit is contained in:
Paul Licameli
2016-06-25 00:06:22 -04:00
parent d31e96aa57
commit 57788c8d7a
7 changed files with 71 additions and 10 deletions

View File

@@ -144,10 +144,7 @@ class AButton final : public wxWindow {
using TempAllowFocus = std::unique_ptr<bool, Resetter>;
public:
static TempAllowFocus TemporarilyAllowFocus() {
s_AcceptsFocus = true;
return std::move(TempAllowFocus{ &s_AcceptsFocus });
}
static TempAllowFocus TemporarilyAllowFocus();
private: