mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-22 07:10:06 +02:00
Fix excessive cursor movement
This commit is contained in:
parent
b5028087b6
commit
15b4cf2bfa
@ -1074,12 +1074,12 @@ bool CommandManager::FilterKeyEvent(AudacityProject *project, const wxKeyEvent &
|
||||
|
||||
wxKeyEvent temp = evt;
|
||||
temp.SetEventType(wxEVT_KEY_DOWN);
|
||||
if (HandleCommandEntry(entry, flags, 0xffffffff, &evt))
|
||||
if (HandleCommandEntry(entry, flags, 0xffffffff, &temp))
|
||||
{
|
||||
if (entry->wantKeyup)
|
||||
{
|
||||
temp.SetEventType(wxEVT_KEY_UP);
|
||||
HandleCommandEntry(entry, flags, 0xffffffff, &evt);
|
||||
HandleCommandEntry(entry, flags, 0xffffffff, &temp);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user