From 4853576db7f467df27173773d69a5b4fcff8123e Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 20 Feb 2021 13:23:45 +0100 Subject: [PATCH] LibGUI: Ignore keydown events with Alt modifier in AbstractView AbstractView doesn't actually do anything with them anyway, but they would get swallowed by the cursor logic and not bubble up the widget parent chain. --- Userland/Libraries/LibGUI/AbstractView.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Userland/Libraries/LibGUI/AbstractView.cpp b/Userland/Libraries/LibGUI/AbstractView.cpp index 701733cb07..d735291e59 100644 --- a/Userland/Libraries/LibGUI/AbstractView.cpp +++ b/Userland/Libraries/LibGUI/AbstractView.cpp @@ -500,6 +500,11 @@ void AbstractView::hide_event(HideEvent& event) void AbstractView::keydown_event(KeyEvent& event) { + if (event.alt()) { + event.ignore(); + return; + } + if (event.key() == KeyCode::Key_F2) { if (is_editable() && edit_triggers() & EditTrigger::EditKeyPressed) { begin_editing(cursor_index());