docs/assets/app.js
function doHandleBinding(cm,bound,dropShift){if(typeof bound=="string"){bound=commands[bound];if(!bound){return false;}}// Ensure previous input has been read, so that the handler sees a
// consistent view of the document
cm.display.input.ensurePolled();var prevShift=cm.display.shift,done=false;try{if(cm.isReadOnly()){cm.state.suppressEdits=true;}if(dropShift){cm.display.shift=false;}done=bound(cm)!=Pass;}finally{cm.display.shift=prevShift;cm.state.suppressEdits=false;}return done;}
function doHandleBinding(cm,bound,dropShift){if(typeof bound=="string"){bound=commands[bound];if(!bound){return false;}}// Ensure previous input has been read, so that the handler sees a
// consistent view of the document
cm.display.input.ensurePolled();var prevShift=cm.display.shift,done=false;try{if(cm.isReadOnly()){cm.state.suppressEdits=true;}if(dropShift){cm.display.shift=false;}done=bound(cm)!=Pass;}finally{cm.display.shift=prevShift;cm.state.suppressEdits=false;}return done;}
function doHandleBinding ( cm , bound , dropShift ) { if ( typeof bound == "string" ) { bound = commands [ bound ] ; if ( ! bound ) { return false ; } } // Ensure previous input has been read, so that the handler sees a // consistent view of the document cm . display . input . ensurePolled ( ) ; var prevShift = cm . display . shift , done = false ; try { if ( cm . isReadOnly ( ) ) { cm . state . suppressEdits = true ; } if ( dropShift ) { cm . display . shift = false ; } done = bound ( cm ) != Pass ; } finally { cm . display . shift = prevShift ; cm . state . suppressEdits = false ; } return done ; }
Run a handler that was bound to a key.
Run a handler that was bound to a key .