Browse Source

Enable Esc toggle codemirror fullscreen

wangweimin 3 years ago
parent
commit
5646351a56
1 changed files with 1 additions and 1 deletions
  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"));
             }
         }
     };