Add a way to unbind keys (delete the bind)

This commit is contained in:
ArsenArsen 2017-06-29 16:33:28 +02:00
parent e2999b4267
commit 0438b7ac82
1 changed files with 1 additions and 1 deletions

View File

@ -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());
});
}