mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
ace2_inner: close all gritters when hitting escape key
This commit is contained in:
parent
51d924c1f8
commit
ffa7244e81
1 changed files with 3 additions and 0 deletions
|
@ -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 */
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue