summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/StackWidget.cpp
AgeCommit message (Collapse)Author
2021-01-12Libraries: Move to Userland/Libraries/Andreas Kling
2020-10-30LibGUI: Add Widget::has_focus_within()Andreas Kling
This returns true if the widget has focus, or if one of its descendant widgets does. Use this in StackWidget and TabWidget. This also fixes HackStudio crashing on startup in StackWidget, due to running before the window has a focused widget.
2020-10-30LibGUI: Improve TabWidget+StackWidget focus behavior furtherAndreas Kling
When setting a new active widget, transfer focus if it's anywhere in the old active widget's tree, not just at the immediate child.
2020-10-30LibGUI: Make StackWidget/TabWidget preserve focus in inactive windowsAndreas Kling
This one is a bit sketchy. While a window is inactive, none of its widgets are considered focused (Widget::is_focused() will return false) but this caused programmatic changes of the active widget in a tab or stack widget to fail focus propagation from old child to new child. Work around this by checking against Window::focused_widget() directly instead of asking Widget::is_focused().
2020-10-30LibGUI: Make StackWidget set the active widget as its focus proxyAndreas Kling
This transparently transfers focus to the active widget whenever the stack widget is focused.
2020-09-18LibGUI: StackWidget should not steal focus when switching active childAndreas Kling
Only focus the new active child if the old one had focus previously.
2020-07-26LibCore+LibGUI: Switch to using AK::is and AK::downcastAndreas Kling
2020-04-24LibGUI: Grant focus when activating a new stack/tab child widgetAndreas Kling
This makes opening a tab actually focus the opened tab.
2020-02-23LibGUI: Remove parent parameter to GUI::Widget constructorAndreas Kling
2020-02-06LibGUI: Remove leading G from filenamesAndreas Kling