]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/gtkdlgs.cpp
radiant/about: set focus on OK button
[xonotic/netradiant.git] / radiant / gtkdlgs.cpp
index a4b9d762363e573fe5388482c35ffa6f6d3396aa..4c09dc48aeb64cf710dbc31a5781b9eef9ff72d7 100644 (file)
@@ -499,6 +499,7 @@ void DoAbout(){
                                {
                     auto button = create_modal_dialog_button( "OK", ok_button );
                                        vbox2.pack_start( button, FALSE, FALSE, 0 );
+                                       gtk_widget_grab_focus( GTK_WIDGET( button ) );
                                }
                                {
                     auto button = create_dialog_button( "Credits", G_CALLBACK( about_button_credits ), 0 );