summaryrefslogtreecommitdiff
path: root/libs/gtkmm2ext/keyboard.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-06-17 16:57:21 +0000
committerCarl Hetherington <carl@carlh.net>2012-06-17 16:57:21 +0000
commit95377c141c404c959797028b737ca747c1bccadb (patch)
treec3cd4d4e6f24071ba1edfd0ad0863814bd0f370e /libs/gtkmm2ext/keyboard.cc
parentadd52f1c0ef787a580c44d719bc6e4c9c5ae09a4 (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/gtkmm2ext/keyboard.cc')
-rw-r--r--libs/gtkmm2ext/keyboard.cc8
1 files changed, 8 insertions, 0 deletions
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()) {