MCPcopy
hub / github.com/csev/py4e / handleCharBinding

Function handleCharBinding

tools/pythonauto/static/codemirrorepl/codemirror.js:3006–3015  ·  view source on GitHub ↗
(cm, e, ch)

Source from the content-addressed store, hash-verified

3004
3005 // Handle a key from the keypress event
3006 function handleCharBinding(cm, e, ch) {
3007 var handled = lookupKey("'" + ch + "'", allKeyMaps(cm),
3008 function(b) { return doHandleBinding(cm, b, true); });
3009 if (handled) {
3010 e_preventDefault(e);
3011 restartBlink(cm);
3012 signalLater(cm, "keyHandled", cm, "'" + ch + "'", e);
3013 }
3014 return handled;
3015 }
3016
3017 var lastStoppedKey = null;
3018 function onKeyDown(e) {

Callers 1

onKeyPressFunction · 0.70

Calls 6

lookupKeyFunction · 0.70
allKeyMapsFunction · 0.70
doHandleBindingFunction · 0.70
e_preventDefaultFunction · 0.70
restartBlinkFunction · 0.70
signalLaterFunction · 0.70

Tested by

no test coverage detected