mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 19:25:10 +00:00
LibGUI: Ignore Alt+{Left,Right} key events in GlyphMapWidget
Fixes seek actions not activating by keyboard shortcut when GlyphMapWidget has focus.
This commit is contained in:
parent
d187862f76
commit
023c1dffab
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue