1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:47:35 +00:00

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
parent 65d94a1e74
commit 4806cd122d
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();