From: Thomas Debesse Date: Sat, 6 Mar 2021 07:55:41 +0000 (+0100) Subject: radiant/about: set focus on OK button X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4368c611482a0a06f1e2d0427724908ab84bd227;p=xonotic%2Fnetradiant.git radiant/about: set focus on OK button --- diff --git a/radiant/gtkdlgs.cpp b/radiant/gtkdlgs.cpp index a4b9d762..4c09dc48 100644 --- a/radiant/gtkdlgs.cpp +++ b/radiant/gtkdlgs.cpp @@ -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 );