ensure that when mixer is shown in its own tab, it has a default focus widget, so that alt-m will always work
This commit is contained in:
parent
9a45e0fde9
commit
006a4c0373
@ -390,13 +390,16 @@ Mixer_UI::use_own_window (bool and_fill_it)
|
||||
|
||||
Gtk::Window* win = Tabbable::use_own_window (and_fill_it);
|
||||
|
||||
|
||||
if (win && new_window) {
|
||||
win->set_name ("MixerWindow");
|
||||
ARDOUR_UI::instance()->setup_toplevel_window (*win, _("Mixer"), this);
|
||||
win->signal_event().connect (sigc::bind (sigc::ptr_fun (&Keyboard::catch_user_event_for_pre_dialog_focus), win));
|
||||
win->set_data ("ardour-bindings", bindings);
|
||||
update_title ();
|
||||
if (!win->get_focus()) {
|
||||
/* set focus widget to something, anything */
|
||||
win->set_focus (scroller);
|
||||
}
|
||||
}
|
||||
|
||||
return win;
|
||||
|
Loading…
Reference in New Issue
Block a user