Engine Dialog: focus OK button (press enter to cont w/previous settings)
authorRobin Gareus <robin@gareus.org>
Mon, 1 Sep 2014 20:06:45 +0000 (22:06 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 1 Sep 2014 20:06:45 +0000 (22:06 +0200)
gtk2_ardour/engine_dialog.cc
gtk2_ardour/engine_dialog.h

index 437aea7d39aab2763a32ec9ea87b7151ce1b0ce1..f081ce21e53dae99a7bf157f66e620e4e7b0fe40 100644 (file)
@@ -300,6 +300,13 @@ EngineControl::EngineControl ()
        notebook.signal_switch_page().connect (sigc::mem_fun (*this, &EngineControl::on_switch_page));
 }
 
+void
+EngineControl::on_show ()
+{
+       ArdourDialog::on_show ();
+       ok_button->grab_focus();
+}
+
 void
 EngineControl::on_response (int response_id)
 {
index 16de4c27664df3923e6901f3f8fcd9c00fdc423e..4ace11efff30a30c4df07b21f6e262b93d775215 100644 (file)
@@ -221,6 +221,7 @@ class EngineControl : public ArdourDialog, public PBD::ScopedConnectionList {
     void build_full_control_notebook ();
     void build_no_control_notebook ();
 
+    void on_show ();
     void on_response (int);
     void control_app_button_clicked ();
     void use_latency_button_clicked ();