diff options
Diffstat (limited to 'Userland/Libraries/LibGUI')
-rw-r--r-- | Userland/Libraries/LibGUI/WindowServerConnection.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/WindowServerConnection.cpp b/Userland/Libraries/LibGUI/WindowServerConnection.cpp index 4cf36d658c..492ea7c421 100644 --- a/Userland/Libraries/LibGUI/WindowServerConnection.cpp +++ b/Userland/Libraries/LibGUI/WindowServerConnection.cpp @@ -113,6 +113,9 @@ void WindowServerConnection::window_left(i32 window_id) static Action* action_for_key_event(Window& window, KeyEvent const& event) { + if (event.key() == KeyCode::Key_Invalid) + return nullptr; + dbgln_if(KEYBOARD_SHORTCUTS_DEBUG, "Looking up action for {}", event.to_string()); for (auto* widget = window.focused_widget(); widget; widget = widget->parent_widget()) { |