We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6bcc72e + 9c77e9d commit f642a11Copy full SHA for f642a11
1 file changed
public/js/lib/editor/index.js
@@ -18,10 +18,10 @@ export default class Editor {
18
cm.setOption('fullScreen', !cm.getOption('fullScreen'))
19
},
20
Esc: function (cm) {
21
- if (cm.getOption('keyMap').substr(0, 3) === 'vim') {
22
- return CodeMirror.Pass
23
- } else if (cm.getOption('fullScreen')) {
+ if (cm.getOption('fullScreen') && !(cm.getOption('keyMap').substr(0, 3) === 'vim')) {
24
cm.setOption('fullScreen', false)
+ } else {
+ return CodeMirror.Pass
25
}
26
27
'Cmd-S': function () {
0 commit comments