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

Function onKeyPress

tools/pythonauto/static/codemirrorepl/codemirror.js:3059–3069  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

3057 }
3058
3059 function onKeyPress(e) {
3060 var cm = this;
3061 if (signalDOMEvent(cm, e)) return;
3062 var keyCode = e.keyCode, charCode = e.charCode;
3063 if (presto && keyCode == lastStoppedKey) {lastStoppedKey = null; e_preventDefault(e); return;}
3064 if (((presto && (!e.which || e.which < 10)) || khtml) && handleKeyBinding(cm, e)) return;
3065 var ch = String.fromCharCode(charCode == null ? keyCode : charCode);
3066 if (handleCharBinding(cm, e, ch)) return;
3067 if (ie && !ie_upto8) cm.display.inputHasSelection = null;
3068 fastPoll(cm);
3069 }
3070
3071 // FOCUS/BLUR EVENTS
3072

Callers

nothing calls this directly

Calls 5

signalDOMEventFunction · 0.70
e_preventDefaultFunction · 0.70
handleKeyBindingFunction · 0.70
handleCharBindingFunction · 0.70
fastPollFunction · 0.70

Tested by

no test coverage detected