mirror of
https://github.com/evennia/evennia.git
synced 2026-03-27 10:16:32 +01:00
Step through help and option popup when closing
This commit is contained in:
parent
a5658260c5
commit
583ce9b71e
1 changed files with 5 additions and 2 deletions
|
|
@ -175,8 +175,11 @@ function onKeydown (event) {
|
|||
}
|
||||
|
||||
if (code === 27) { // Escape key
|
||||
closePopup("#optionsdialog");
|
||||
closePopup("#helpdialog");
|
||||
if ($('#helpdialog').is(':visible')) {
|
||||
closePopup("#helpdialog");
|
||||
} else {
|
||||
closePopup("#optionsdialog");
|
||||
}
|
||||
}
|
||||
|
||||
if (history_entry !== null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue