X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fgtkmm2ext%2Fkeyboard.cc;h=9966972edba6d41a8ed00a3055e1f914359cf452;hb=0f47a171c9d757f6d9091df7da5f8bef11eaba74;hp=6328eb977c39492327ed7a55db6eff7cbcc5e57b;hpb=6a4628e50acaaf1540491cf4aac412e8bb3fc0b3;p=ardour.git diff --git a/libs/gtkmm2ext/keyboard.cc b/libs/gtkmm2ext/keyboard.cc index 6328eb977c..9966972edb 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()) { @@ -523,7 +531,7 @@ Keyboard::load_keybindings (string path) } catch (...) { - error << string_compose (_("Ardour key bindings file not found at \"%1\" or contains errors."), path) + error << string_compose (_("key bindings file not found at \"%2\" or contains errors."), path) << endmsg; return false; }