1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

Should fix keyboard problem on Linux...

...where accelerators were still being recognized when entering
a track name or rate.
This commit is contained in:
Leland Lucius 2015-08-14 18:40:56 -05:00
parent 7bc176f5ac
commit 8504603e8a

View File

@ -1081,7 +1081,9 @@ bool CommandManager::FilterKeyEvent(AudacityProject *project, const wxKeyEvent &
} }
// Any other keypresses must be destined for this project window. // 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; return false;
} }