2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-07-24 10:24:29 -06:00

Fix Esc key not exiting full screen properly; Fixes #99

This commit is contained in:
Wes Cossick 2015-09-17 00:42:31 -05:00
parent 2f6af67480
commit e6ab126431

View File

@ -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;