main.js
/**
     * @private
     * Close inline editor when esc is pressed outside of insert/replace mode
     * @param {CodeMirror} _cm Event CodeMirror instance
     * @param {jQuery.Event} e KeyEvent event object
     */
@private
Close inline editor when esc is pressed outside of insert/replace mode
@param {CodeMirror} _cm Event CodeMirror instance
@param {jQuery.Event} e KeyEvent event object
@private Close inline editor when esc is pressed outside of insert / replace mode @param { CodeMirror } _cm Event CodeMirror instance @param { jQuery . Event } e KeyEvent event object
function escKeyEvent(cm, e) {
        if (e.keyCode === 27) {
            e.stopPropagation();
            var inlineFocused = EditorManager.getFocusedInlineWidget();
            if (inlineFocused) {
                if (cm.state.vim && !cm.state.vim.insertMode && !cm.state.vim.visualMode) {
                    CodeMirror.commands.close();
                }
            }
        }
    }
function escKeyEvent ( cm , e ) { if ( e . keyCode === 27 ) { e . stopPropagation ( ) ; var inlineFocused = EditorManager . getFocusedInlineWidget ( ) ; if ( inlineFocused ) { if ( cm . state . vim && ! cm . state . vim . insertMode && ! cm . state . vim . visualMode ) { CodeMirror . commands . close ( ) ; } } } }
@private
 Close inline editor when esc is pressed outside of insert/replace mode
 @param {CodeMirror} _cm Event CodeMirror instance
 @param {jQuery.Event} e KeyEvent event object
@private Close inline editor when esc is pressed outside of insert / replace mode @param { CodeMirror } _cm Event CodeMirror instance @param { jQuery . Event } e KeyEvent event object