fix assignment of modifier keys

This commit is contained in:
oltolm 2024-10-25 19:07:04 +02:00 committed by Vicki Pfau
parent 279485fc3e
commit 65b14b4ad9
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}