浏览代码

Enable Esc toggle codemirror fullscreen

wangweimin 3 年之前
父节点
当前提交
5646351a56
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      webiojs/src/models/input/textarea.ts

+ 1 - 1
webiojs/src/models/input/textarea.ts

@@ -31,7 +31,7 @@ export class Textarea extends InputItem {
                 cm.setOption("fullScreen", !cm.getOption("fullScreen"));
             },
             "Esc": function (cm: any) {
-                if (cm.getOption("fullScreen")) cm.setOption("fullScreen", false);
+                cm.setOption("fullScreen", !cm.getOption("fullScreen"));
             }
         }
     };