]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
radiant/about: set focus on OK button
authorThomas Debesse <dev@illwieckz.net>
Sat, 6 Mar 2021 07:55:41 +0000 (08:55 +0100)
committerThomas Debesse <dev@illwieckz.net>
Sat, 6 Mar 2021 10:01:34 +0000 (11:01 +0100)
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 );