mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04: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);
|
fastIncorp(4);
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
specialHandled = true;
|
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 */
|
if ((!specialHandled) && isTypeForCmdKey && String.fromCharCode(which).toLowerCase() == "s" && (evt.metaKey || evt.ctrlKey) && !evt.altKey && padShortcutEnabled.cmdS) /* Do a saved revision on ctrl S */
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue