Age | Commit message (Collapse) | Author |
|
|
|
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.
|
|
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.
|
|
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().
|
|
This transparently transfers focus to the active widget whenever the
stack widget is focused.
|
|
Only focus the new active child if the old one had focus previously.
|
|
|
|
This makes opening a tab actually focus the opened tab.
|
|
|
|
|