Skip to content

Commit 006a4c0

Browse files
ensure that when mixer is shown in its own tab, it has a default focus widget, so that alt-m will always work
1 parent 9a45e0f commit 006a4c0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gtk2_ardour/mixer_ui.cc

+4-1
Original file line numberDiff line numberDiff line change
@@ -390,13 +390,16 @@ Mixer_UI::use_own_window (bool and_fill_it)
390390

391391
Gtk::Window* win = Tabbable::use_own_window (and_fill_it);
392392

393-
394393
if (win && new_window) {
395394
win->set_name ("MixerWindow");
396395
ARDOUR_UI::instance()->setup_toplevel_window (*win, _("Mixer"), this);
397396
win->signal_event().connect (sigc::bind (sigc::ptr_fun (&Keyboard::catch_user_event_for_pre_dialog_focus), win));
398397
win->set_data ("ardour-bindings", bindings);
399398
update_title ();
399+
if (!win->get_focus()) {
400+
/* set focus widget to something, anything */
401+
win->set_focus (scroller);
402+
}
400403
}
401404

402405
return win;

0 commit comments

Comments
 (0)