fix numpad shortcuts

This commit is contained in:
oltolm 2024-10-30 17:54:32 +01:00 committed by Vicki Pfau
parent 377ddf5081
commit 26ea53b024
1 changed files with 3 additions and 1 deletions

View File

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