MCPcopy Index your code
hub / github.com/csev/py4e / doHandleBinding

Function doHandleBinding

tools/pythonauto/static/codemirrorepl/codemirrorepl.js:711–729  ·  view source on GitHub ↗
(bound, dropShift)

Source from the content-addressed store, hash-verified

709 }
710
711 function doHandleBinding(bound, dropShift) {
712 if (typeof bound == "string") {
713 bound = commands[bound];
714 if (!bound) return false;
715 }
716 var prevShift = shiftSelecting;
717 try {
718 if (options.readOnly) suppressEdits = true;
719 if (dropShift) shiftSelecting = null;
720 bound(instance);
721 } catch(e) {
722 if (e != Pass) throw e;
723 return false;
724 } finally {
725 shiftSelecting = prevShift;
726 suppressEdits = false;
727 }
728 return true;
729 }
730 function handleKeyBinding(e) {
731 // Handle auto keymap transitions
732 var startMap = getKeyMap(options.keyMap), next = startMap.auto;

Callers 2

handleKeyBindingFunction · 0.70
handleCharBindingFunction · 0.70

Calls 1

boundFunction · 0.50

Tested by

no test coverage detected