Allow mapping ESC now that we have a cancel button

This commit is contained in:
Henrik Rydgard committed 2013-08-20 11:37:29 +02:00
1 parent c5de701ae3
commit ec3e345111
1 file changed
-5
-5
View File
@@ -222,11 +222,6 @@ void KeyMappingNewKeyDialog::key(const KeyInput &key) {
return;
}
if (key.keyCode == NKCODE_ESCAPE) {
screenManager()->finishDialog(this, DR_CANCEL);
return;
}
KeyDef kdf(key.deviceId, key.keyCode);
screenManager()->finishDialog(this, DR_OK);
if (callback_)