mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibGUI: Switch focus if the currently focused widget is disabled
This commit is contained in:
parent
df6106854e
commit
644d5c5404
Notes:
sideshowbarker
2024-07-19 00:30:59 +09:00
Author: https://github.com/awesomekling
Commit: 644d5c5404
3 changed files with 11 additions and 0 deletions
|
@ -927,4 +927,9 @@ void Window::focus_a_widget_if_possible(FocusSource source)
|
|||
set_focused_widget(focusable_widgets[0], source);
|
||||
}
|
||||
|
||||
void Window::did_disable_focused_widget(Badge<Widget>)
|
||||
{
|
||||
focus_a_widget_if_possible(FocusSource::Mouse);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue