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.
This commit is contained in:
Burak Koray 2021-10-03 23:42:16 +02:00 committed by Vadim Zeitlin
parent 9c17ff731a
commit 34989c614d

View File

@ -58,6 +58,8 @@ public:
wxSizerFlags().Expand().DoubleBorder(wxLEFT|wxRIGHT|wxBOTTOM));
#endif
SetSizer(sizer);
m_notebook->SetFocus();
}
void AddPage(wxPreferencesPage *page)