mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-25 16:48:44 +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.
|
/// Filter captured keys typed into LabelTracks.
|
||||||
void TrackPanel::OnCaptureKey(wxCommandEvent & event)
|
void TrackPanel::OnCaptureKey(wxCommandEvent & event)
|
||||||
{
|
{
|
||||||
|
wxKeyEvent *kevent = static_cast<wxKeyEvent *>(event.GetEventObject());
|
||||||
|
if ( WXK_ESCAPE != kevent->GetKeyCode() )
|
||||||
HandleInterruptedDrag();
|
HandleInterruptedDrag();
|
||||||
|
|
||||||
// Only deal with LabelTracks
|
// Only deal with LabelTracks
|
||||||
@ -6194,7 +6196,6 @@ void TrackPanel::OnCaptureKey(wxCommandEvent & event)
|
|||||||
event.Skip();
|
event.Skip();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
wxKeyEvent *kevent = (wxKeyEvent *)event.GetEventObject();
|
|
||||||
|
|
||||||
event.Skip(!((LabelTrack *)t)->CaptureKey(*kevent));
|
event.Skip(!((LabelTrack *)t)->CaptureKey(*kevent));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user