mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-13 16:16:33 +01:00
ESC key can abort certain dragging actions
For now, let it abort vertical scale zoom (any mouse button in any tool, in the vertical ruler) and horizontal zoom (any mouse button in the zoom tool or right mouse button in the multi tool, in the wave display) Should any other drags be escapable too? Time shifting? That would need some more work to restore initial state.
This commit is contained in:
@@ -208,6 +208,7 @@ class AUDACITY_DLL_API TrackPanel:public wxPanel {
|
||||
//virtual void SetSelectionFormat(int iformat)
|
||||
//virtual void SetSnapTo(int snapto)
|
||||
|
||||
void HandleEscapeKey();
|
||||
virtual void HandleAltKey(bool down);
|
||||
virtual void HandleShiftKey(bool down);
|
||||
virtual void HandleControlKey(bool down);
|
||||
|
||||
Reference in New Issue
Block a user