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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user