Allow empty key in key sequence widget (fcitx/fcitx5#898)

This commit is contained in:
Weng Xuetian 2023-11-19 07:37:25 -08:00
parent a3ad97d771
commit 21ab8cd75a
No known key found for this signature in database
GPG Key ID: 8E8B898CBF2412F9
2 changed files with 2 additions and 6 deletions

View File

@ -279,9 +279,7 @@ void FcitxQtKeySequenceWidget::setKeySequence(const QList<Key> &seq) {
d->keySequence_ = QList<Key>();
for (auto key : seq) {
if (key.isValid()) {
d->keySequence_ << key;
}
d->keySequence_ << key;
}
d->doneRecording();
}

View File

@ -248,9 +248,7 @@ void FcitxQtKeySequenceWidget::setKeySequence(const QList<Key> &seq) {
d->keySequence_ = QList<Key>();
for (auto key : seq) {
if (key.isValid()) {
d->keySequence_ << key;
}
d->keySequence_ << key;
}
d->doneRecording();
}