Closes the help/options dialog with escape

This commit is contained in:
Simon Vermeersch 2017-02-04 20:13:54 +01:00 committed by Griatch
parent 8f16badf85
commit 91fd754e98

View file

@ -174,6 +174,11 @@ function onKeydown (event) {
}
}
if (code === 27) { // Escape key
closePopup("#optionsdialog");
closePopup("#helpdialog");
}
if (history_entry !== null) {
// Doing a history navigation; replace the text in the input.
inputfield.val(history_entry);