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