ace2_inner: close all gritters when hitting escape key

This commit is contained in:
John McLear 2020-04-20 16:20:35 +00:00 committed by muxator
parent 51d924c1f8
commit ffa7244e81

View file

@ -3855,6 +3855,9 @@ function Ace2Inner(){
fastIncorp(4);
evt.preventDefault();
specialHandled = true;
// close all gritters when the user hits escape key
parent.parent.$.gritter.removeAll();
}
if ((!specialHandled) && isTypeForCmdKey && String.fromCharCode(which).toLowerCase() == "s" && (evt.metaKey || evt.ctrlKey) && !evt.altKey && padShortcutEnabled.cmdS) /* Do a saved revision on ctrl S */
{