diff options
author | thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> | 2023-05-10 16:59:17 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-13 12:53:49 +0200 |
commit | 023c1dffabc7682c85c9cb22422083e4a18e93cc (patch) | |
tree | 274b3ad0538be666bffaecd3392cfbe7a8fbc8f9 /Userland | |
parent | d187862f7682b180a87d9ca9ad2bfd8deace8eec (diff) | |
download | serenity-023c1dffabc7682c85c9cb22422083e4a18e93cc.zip |
LibGUI: Ignore Alt+{Left,Right} key events in GlyphMapWidget
Fixes seek actions not activating by keyboard shortcut when
GlyphMapWidget has focus.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibGUI/GlyphMapWidget.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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) |