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

LibGUI: Make TabWidget unfocusable when tab-less

If there are no tab buttons or tab children, don't participate in the
focus chain.
This commit is contained in:
Andreas Kling 2020-10-30 16:30:33 +01:00
parent 0b798a50dc
commit 3f4df354cb
2 changed files with 13 additions and 1 deletions

View file

@ -105,6 +105,7 @@ private:
Gfx::IntRect bar_rect() const;
Gfx::IntRect container_rect() const;
void update_bar();
void update_focus_policy();
RefPtr<Widget> m_active_widget;