浏览代码

LibGUI: Ignore Alt+{Left,Right} key events in GlyphMapWidget

Fixes seek actions not activating by keyboard shortcut when
GlyphMapWidget has focus.
thankyouverycool 2 年之前
父节点
当前提交
023c1dffab
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Userland/Libraries/LibGUI/GlyphMapWidget.cpp

+ 4 - 0
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)