From 8504603e8a27fd802b0e78a36e368422220d210d Mon Sep 17 00:00:00 2001 From: Leland Lucius Date: Fri, 14 Aug 2015 18:40:56 -0500 Subject: [PATCH] Should fix keyboard problem on Linux... ...where accelerators were still being recognized when entering a track name or rate. --- src/commands/CommandManager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/CommandManager.cpp b/src/commands/CommandManager.cpp index b8f49f4be..6e62f9871 100644 --- a/src/commands/CommandManager.cpp +++ b/src/commands/CommandManager.cpp @@ -1081,7 +1081,9 @@ bool CommandManager::FilterKeyEvent(AudacityProject *project, const wxKeyEvent & } // Any other keypresses must be destined for this project window. - if (!permit && wxGetTopLevelParent(wxWindow::FindFocus()) != project) + if (!permit && + (wxGetTopLevelParent(wxWindow::FindFocus()) != project || + !wxEventLoop::GetActive()->IsMain())) { return false; }