mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
GWindow: Hide SerenityKeys when window is deselected
This commit is contained in:
parent
6e0e9481a4
commit
50fd9ed383
Notes:
sideshowbarker
2024-07-19 13:35:44 +09:00
Author: https://github.com/faissaloo Commit: https://github.com/SerenityOS/serenity/commit/50fd9ed3838 Pull-request: https://github.com/SerenityOS/serenity/pull/173 Reviewed-by: https://github.com/awesomekling
1 changed files with 5 additions and 0 deletions
|
@ -296,6 +296,11 @@ void GWindow::event(CEvent& event)
|
|||
}
|
||||
|
||||
if (event.type() == GEvent::WindowBecameActive || event.type() == GEvent::WindowBecameInactive) {
|
||||
if (event.type() == GEvent::WindowBecameInactive && m_keybind_mode) {
|
||||
m_keybind_mode = false;
|
||||
update();
|
||||
}
|
||||
|
||||
m_is_active = event.type() == GEvent::WindowBecameActive;
|
||||
if (m_main_widget)
|
||||
m_main_widget->event(event);
|
||||
|
|
Loading…
Reference in a new issue