diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-10-30 23:45:20 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-10-30 23:45:20 +0000 |
commit | 040d7fec2c23216be7533b727cde4407fb2f8036 (patch) | |
tree | 1e96338f73e9e526b928b30f6dfdda4bdb95bde6 /gtk2_ardour/keyboard.cc | |
parent | 2fab8c2737c3d384cba668a81e7d439730da8232 (diff) |
remove cruft from ArdourUI; improve keyboard icon(s); shrink other plugin GUI buttons; close all dialogs when quitting so that we actually quit
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4036 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/keyboard.cc')
-rw-r--r-- | gtk2_ardour/keyboard.cc | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/gtk2_ardour/keyboard.cc b/gtk2_ardour/keyboard.cc index a1adc5e9ba..e5fb8d8b10 100644 --- a/gtk2_ardour/keyboard.cc +++ b/gtk2_ardour/keyboard.cc @@ -89,14 +89,12 @@ void Keyboard::magic_widget_grab_focus () { _some_magic_widget_has_focus = true; - cerr << "Grabbed magic widget docus\n"; } void Keyboard::magic_widget_drop_focus () { _some_magic_widget_has_focus = false; - cerr << "Dropped magic widget docus\n"; } bool @@ -264,10 +262,20 @@ Keyboard::snooper (GtkWidget *widget, GdkEventKey *event) } } - if (event->type == GDK_KEY_RELEASE && event->keyval == GDK_w && modifier_state_equals (event->state, PrimaryModifier)) { - if (current_window) { - current_window->hide (); - current_window = 0; + /* Special keys that we want to handle in + any dialog, no matter whether it uses + the regular set of accelerators or not + */ + + if (event->type == GDK_KEY_RELEASE && modifier_state_equals (event->state, PrimaryModifier)) { + switch (event->keyval) { + case GDK_w: + if (current_window) { + current_window->hide (); + current_window = 0; + ret = true; + } + break; } } |