Step through help and option popup when closing

This commit is contained in:
Nicholas Matlaga 2017-12-13 21:08:02 -05:00
parent bafb88f2f4
commit 40d6f7fc7c

View file

@ -175,8 +175,11 @@ function onKeydown (event) {
} }
if (code === 27) { // Escape key if (code === 27) { // Escape key
closePopup("#optionsdialog"); if ($('#helpdialog').is(':visible')) {
closePopup("#helpdialog"); closePopup("#helpdialog");
} else {
closePopup("#optionsdialog");
}
} }
if (history_entry !== null) { if (history_entry !== null) {