diff --git a/LibGUI/GWindow.cpp b/LibGUI/GWindow.cpp index 284ce123b6..a84d55a0ed 100644 --- a/LibGUI/GWindow.cpp +++ b/LibGUI/GWindow.cpp @@ -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);