mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
escape to exit editbar
This commit is contained in:
parent
e67ae522e2
commit
69f0392e75
1 changed files with 1 additions and 1 deletions
|
@ -310,7 +310,7 @@ var padeditbar = (function()
|
||||||
function editbarKeyEvent(evt){
|
function editbarKeyEvent(evt){
|
||||||
// If the event is Alt F9 (we're already in the editbar menu
|
// If the event is Alt F9 (we're already in the editbar menu
|
||||||
// Send the users focus back to the pad
|
// Send the users focus back to the pad
|
||||||
if(evt.keyCode === 120){
|
if(evt.keyCode === 120 || evt.keyCode === 27){
|
||||||
// If we're in the editbar already..
|
// If we're in the editbar already..
|
||||||
$(':focus').blur(); // required to do not try to remove!
|
$(':focus').blur(); // required to do not try to remove!
|
||||||
padeditor.ace.focus(); // Sends focus back
|
padeditor.ace.focus(); // Sends focus back
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue