From 023c1dffabc7682c85c9cb22422083e4a18e93cc Mon Sep 17 00:00:00 2001 From: thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> Date: Wed, 10 May 2023 16:59:17 -0400 Subject: LibGUI: Ignore Alt+{Left,Right} key events in GlyphMapWidget Fixes seek actions not activating by keyboard shortcut when GlyphMapWidget has focus. --- Userland/Libraries/LibGUI/GlyphMapWidget.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Userland') diff --git a/Userland/Libraries/LibGUI/GlyphMapWidget.cpp b/Userland/Libraries/LibGUI/GlyphMapWidget.cpp index ce7b6accce..5a472b8b6f 100644 --- a/Userland/Libraries/LibGUI/GlyphMapWidget.cpp +++ b/Userland/Libraries/LibGUI/GlyphMapWidget.cpp @@ -334,6 +334,8 @@ void GlyphMapWidget::keydown_event(KeyEvent& event) } if (event.key() == KeyCode::Key_Left) { + if (event.alt()) + return event.ignore(); if (m_active_glyph - 1 < first_glyph) return; if (event.ctrl() && selection.start() - 1 < first_glyph) @@ -348,6 +350,8 @@ void GlyphMapWidget::keydown_event(KeyEvent& event) } if (event.key() == KeyCode::Key_Right) { + if (event.alt()) + return event.ignore(); if (m_active_glyph + 1 > last_glyph) return; if (event.ctrl() && selection.start() + selection.size() > last_glyph) -- cgit v1.2.3