From b9674115b7d3780164ed30e4151984de78b904e7 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 17 Apr 2020 11:34:34 -0600 Subject: when re-entering the track canvas in internal edit mode, ensure that kbd focus is set --- gtk2_ardour/editor_canvas.cc | 9 +++++++++ 1 file changed, 9 insertions(+) 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 */ -- cgit v1.2.3