From 34989c614d37306c41e32117ce2d63c69f172029 Mon Sep 17 00:00:00 2001 From: Burak Koray Date: Sun, 3 Oct 2021 23:42:16 +0200 Subject: [PATCH] Focus the contents of the generic preferences dialog initially This is more useful than leaving the focus on the "OK" button, which can already be easily activated from keyboard. Closes #19277. --- src/generic/preferencesg.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/generic/preferencesg.cpp b/src/generic/preferencesg.cpp index 4151a1e557..ddfd964d07 100644 --- a/src/generic/preferencesg.cpp +++ b/src/generic/preferencesg.cpp @@ -58,6 +58,8 @@ public: wxSizerFlags().Expand().DoubleBorder(wxLEFT|wxRIGHT|wxBOTTOM)); #endif SetSizer(sizer); + + m_notebook->SetFocus(); } void AddPage(wxPreferencesPage *page)