better system for managing kbd focus after cmd-w closing a dialog.
[ardour.git] / gtk2_ardour / ardour_ui_ed.cc
index 06995f75d798538547f2a200378fe562593985c8..8329ea35d221c2c38e5302284453eb4b9c748d37 100644 (file)
@@ -87,6 +87,7 @@ ARDOUR_UI::create_editor ()
 
        editor->Realized.connect (sigc::mem_fun (*this, &ARDOUR_UI::editor_realized));
        editor->signal_window_state_event().connect (sigc::bind (sigc::mem_fun (*this, &ARDOUR_UI::main_window_state_event_handler), true));
+        editor->signal_event().connect (sigc::bind (sigc::ptr_fun (&Keyboard::catch_user_event_for_pre_dialog_focus), editor));
 
        return 0;
 }