Skip to content

Commit

Permalink
fix numpad shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
oltolm authored and endrift committed Oct 31, 2024
1 parent 377ddf5 commit 26ea53b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/platform/qt/KeyEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 26ea53b

Please sign in to comment.