diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-05-21 08:34:09 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-05-31 15:30:44 -0400 |
commit | 4cd6d52013dc60d65c2872d9d6e87e83e85cff95 (patch) | |
tree | 4319de89570908563ac16f6479205bd671722dd6 /gtk2_ardour/ardour_ui.h | |
parent | 791d0196d66c6309b0be5006ea719cfc527989d4 (diff) |
make Escape (cancel drag or selection) work in mixer as well as editor
Diffstat (limited to 'gtk2_ardour/ardour_ui.h')
-rw-r--r-- | gtk2_ardour/ardour_ui.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui.h b/gtk2_ardour/ardour_ui.h index 53abcd0f17..93dc47ff12 100644 --- a/gtk2_ardour/ardour_ui.h +++ b/gtk2_ardour/ardour_ui.h @@ -202,6 +202,12 @@ public: static ARDOUR_UI *instance () { return theArdourUI; } + /* signal emitted when escape key is pressed. All UI components that + need to respond to Escape in some way (e.g. break drag, clear + selection, etc) should connect to and handle this. + */ + PBD::Signal0<void> Escape; + PublicEditor& the_editor() { return *editor;} Mixer_UI* the_mixer() { return mixer; } @@ -877,6 +883,8 @@ private: void step_up_through_tabs (); void step_down_through_tabs (); + + void escape (); }; #endif /* __ardour_gui_h__ */ |