1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:08:11 +00:00

LibGUI: Never resolve Key_Invalid to a GUI::Action

Fixes #7047.
This commit is contained in:
Andreas Kling 2021-05-12 20:58:09 +02:00
parent 8c7bce818d
commit bc0146932e

View file

@ -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()) {