LibGUI: Focus the first focusable widget added to a window

It feels really awkward if nothing is focused when opening a window.
This commit is contained in:
Andreas Kling 2020-05-21 17:26:09 +02:00
commit 4806cd122d
Notes: sideshowbarker 2024-07-19 06:16:56 +09:00
3 changed files with 11 additions and 2 deletions

View file

@ -183,7 +183,8 @@ public:
Action* action_for_key_event(const KeyEvent&);
void did_remove_widget(Badge<Widget>, const Widget&);
void did_add_widget(Badge<Widget>, Widget&);
void did_remove_widget(Badge<Widget>, Widget&);
Window* find_parent_window();