mirror of https://github.com/mgba-emu/mgba.git
fix numpad shortcuts
This commit is contained in:
parent
377ddf5081
commit
26ea53b024
|
@ -110,7 +110,9 @@ void KeyEditor::keyPressEvent(QKeyEvent* event) {
|
|||
m_key = Qt::Key_unknown;
|
||||
}
|
||||
m_lastKey.start(KEY_TIME);
|
||||
setValue(ShortcutController::isModifierKey(event->key()) ? event->key() : event->key() | event->modifiers());
|
||||
setValue(ShortcutController::isModifierKey(event->key()) ?
|
||||
event->key() :
|
||||
event->key() | (event->modifiers() & ~Qt::KeypadModifier));
|
||||
}
|
||||
event->accept();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue