1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-24 07:13:48 +02:00

Fix excessive cursor movement

This commit is contained in:
Leland Lucius
2015-08-11 12:17:25 -05:00
parent b5028087b6
commit 15b4cf2bfa

View File

@@ -1074,12 +1074,12 @@ bool CommandManager::FilterKeyEvent(AudacityProject *project, const wxKeyEvent &
wxKeyEvent temp = evt; wxKeyEvent temp = evt;
temp.SetEventType(wxEVT_KEY_DOWN); temp.SetEventType(wxEVT_KEY_DOWN);
if (HandleCommandEntry(entry, flags, 0xffffffff, &evt)) if (HandleCommandEntry(entry, flags, 0xffffffff, &temp))
{ {
if (entry->wantKeyup) if (entry->wantKeyup)
{ {
temp.SetEventType(wxEVT_KEY_UP); temp.SetEventType(wxEVT_KEY_UP);
HandleCommandEntry(entry, flags, 0xffffffff, &evt); HandleCommandEntry(entry, flags, 0xffffffff, &temp);
} }
return true; return true;