Allow empty key in key sequence widget (fcitx/fcitx5#898)
This commit is contained in:
parent
a3ad97d771
commit
21ab8cd75a
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue