mirror of https://github.com/mgba-emu/mgba.git
fix assignment of modifier keys
This commit is contained in:
parent
279485fc3e
commit
65b14b4ad9
|
@ -110,7 +110,7 @@ void KeyEditor::keyPressEvent(QKeyEvent* event) {
|
|||
m_key = Qt::Key_unknown;
|
||||
}
|
||||
m_lastKey.start(KEY_TIME);
|
||||
setValue(ShortcutController::isModifierKey(event->key()) ? event->modifiers() : event->key() | event->modifiers());
|
||||
setValue(ShortcutController::isModifierKey(event->key()) ? event->key() : event->key() | event->modifiers());
|
||||
}
|
||||
event->accept();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue