diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-04-17 11:34:34 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-04-17 11:34:34 -0600 |
commit | b9674115b7d3780164ed30e4151984de78b904e7 (patch) | |
tree | 1927de37974b614711791d2acfee329aed455884 /gtk2_ardour/editor_canvas.cc | |
parent | ba585e440d4e93eeb908ac9e2a1ed46871ccdd09 (diff) |
when re-entering the track canvas in internal edit mode, ensure that kbd focus is set
Diffstat (limited to 'gtk2_ardour/editor_canvas.cc')
-rw-r--r-- | gtk2_ardour/editor_canvas.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_canvas.cc b/gtk2_ardour/editor_canvas.cc index f5f419be7c..a72867563d 100644 --- a/gtk2_ardour/editor_canvas.cc +++ b/gtk2_ardour/editor_canvas.cc @@ -922,6 +922,15 @@ Editor::entered_track_canvas (GdkEventCrossing* ev) reset_canvas_action_sensitivity (true); if (!was_within) { + + if (internal_editing()) { + /* ensure that key events go here because there are + internal editing bindings associated only with the + canvas. if the focus is elsewhere, we cannot find them. + */ + _track_canvas->grab_focus (); + } + if (ev->detail == GDK_NOTIFY_NONLINEAR || ev->detail == GDK_NOTIFY_NONLINEAR_VIRTUAL) { /* context menu or something similar */ |