mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-25 08:38:39 +02:00
Do not HandleInterruptedDrag for ESC key, it would be redundant
This commit is contained in:
parent
01450e8db0
commit
05f1a03cb4
@ -6186,6 +6186,8 @@ void TrackPanel::HandleWheelRotationInVRuler
|
||||
/// Filter captured keys typed into LabelTracks.
|
||||
void TrackPanel::OnCaptureKey(wxCommandEvent & event)
|
||||
{
|
||||
wxKeyEvent *kevent = static_cast<wxKeyEvent *>(event.GetEventObject());
|
||||
if ( WXK_ESCAPE != kevent->GetKeyCode() )
|
||||
HandleInterruptedDrag();
|
||||
|
||||
// Only deal with LabelTracks
|
||||
@ -6194,7 +6196,6 @@ void TrackPanel::OnCaptureKey(wxCommandEvent & event)
|
||||
event.Skip();
|
||||
return;
|
||||
}
|
||||
wxKeyEvent *kevent = (wxKeyEvent *)event.GetEventObject();
|
||||
|
||||
event.Skip(!((LabelTrack *)t)->CaptureKey(*kevent));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user