mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2024-06-03 06:22:20 +02:00
Fix Esc key not exiting full screen properly; Fixes #99
This commit is contained in:
parent
2f6af67480
commit
e6ab126431
|
@ -838,7 +838,7 @@ SimpleMDE.prototype.render = function(el) {
|
|||
toggleSideBySide(self);
|
||||
};
|
||||
keyMaps["Esc"] = function(cm) {
|
||||
if(cm.getOption("fullScreen")) cm.setOption("fullScreen", false);
|
||||
if(cm.getOption("fullScreen")) toggleFullScreen(self);
|
||||
};
|
||||
|
||||
var mode, backdrop;
|
||||
|
|
Loading…
Reference in a new issue