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

View File

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