From 4368c611482a0a06f1e2d0427724908ab84bd227 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Sat, 6 Mar 2021 08:55:41 +0100 Subject: [PATCH] radiant/about: set focus on OK button --- radiant/gtkdlgs.cpp | 1 + 1 file changed, 1 insertion(+) 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 ); -- 2.39.2