Closes the help/options dialog with escape
This commit is contained in:
parent
8f16badf85
commit
91fd754e98
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue