diff options
author | Carl Hetherington <carl@carlh.net> | 2012-06-17 16:57:21 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-06-17 16:57:21 +0000 |
commit | 95377c141c404c959797028b737ca747c1bccadb (patch) | |
tree | c3cd4d4e6f24071ba1edfd0ad0863814bd0f370e /libs | |
parent | add52f1c0ef787a580c44d719bc6e4c9c5ae09a4 (diff) |
Hacky fix for track height step losing 'grip' on the
track being resized (#4503).
git-svn-id: svn://localhost/ardour2/branches/3.0@12747 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/gtkmm2ext/gtkmm2ext/keyboard.h | 2 | ||||
-rw-r--r-- | libs/gtkmm2ext/keyboard.cc | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/libs/gtkmm2ext/gtkmm2ext/keyboard.h b/libs/gtkmm2ext/gtkmm2ext/keyboard.h index 3287cdb37e..909f791403 100644 --- a/libs/gtkmm2ext/gtkmm2ext/keyboard.h +++ b/libs/gtkmm2ext/gtkmm2ext/keyboard.h @@ -159,6 +159,8 @@ class Keyboard : public sigc::trackable, PBD::Stateful } }; + sigc::signal0<void> ShiftReleased; + protected: static Keyboard* _the_keyboard; diff --git a/libs/gtkmm2ext/keyboard.cc b/libs/gtkmm2ext/keyboard.cc index 6328eb977c..81b9ae642a 100644 --- a/libs/gtkmm2ext/keyboard.cc +++ b/libs/gtkmm2ext/keyboard.cc @@ -243,6 +243,14 @@ Keyboard::snooper (GtkWidget *widget, GdkEventKey *event) keyval = event->keyval; } + if (keyval == GDK_Shift_L) { + /* There is a special and rather hacky situation in Editor which makes + it useful to know when a shift key has been released, so emit a signal + here (see Editor::_stepping_axis_view) + */ + ShiftReleased (); /* EMIT SIGNAL */ + } + if (event->type == GDK_KEY_PRESS) { if (find (state.begin(), state.end(), keyval) == state.end()) { |