Add a way to unbind keys (delete the bind)
This commit is contained in:
parent
e2999b4267
commit
0438b7ac82
@ -11,7 +11,7 @@ HotkeyInputDialog::HotkeyInputDialog(QString hotkeyName, QKeySequence currentSeq
|
||||
setWindowTitle(hotkeyName);
|
||||
connect(this, &QDialog::accepted, [&] {
|
||||
QKeySequence s(ui->keySeq->text());
|
||||
if (!s.toString().isEmpty()) emit sequenceSelected(s, windowTitle());
|
||||
if (ui->keySeq->text().isEmpty() || !s.toString().isEmpty()) emit sequenceSelected(s, windowTitle());
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user