Fix keycode capture

This commit is contained in:
Weng Xuetian 2022-05-19 01:18:32 -07:00
parent cd23680423
commit 3430f3626f
No known key found for this signature in database
GPG Key ID: 8E8B898CBF2412F9
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@ void FcitxQtKeySequenceButton::keyPressEvent(QKeyEvent *e) {
Key key;
if (d->keyCodeModeAction_->isChecked()) {
key = Key::fromKeyCode(e->nativeScanCode(), key.states());
key = Key::fromKeyCode(e->nativeScanCode(), d->modifierKeys_);
} else {
if (isX11LikePlatform()) {
key = Key(static_cast<KeySym>(e->nativeVirtualKey()),