MCPcopy Create free account
hub / github.com/sql-js/sql.js / onKeyPress

Function onKeyPress

GUI/codemirror/lib/codemirror.js:3090–3100  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

3088 }
3089
3090 function onKeyPress(e) {
3091 var cm = this;
3092 if (signalDOMEvent(cm, e)) return;
3093 var keyCode = e.keyCode, charCode = e.charCode;
3094 if (presto && keyCode == lastStoppedKey) {lastStoppedKey = null; e_preventDefault(e); return;}
3095 if (((presto && (!e.which || e.which < 10)) || khtml) && handleKeyBinding(cm, e)) return;
3096 var ch = String.fromCharCode(charCode == null ? keyCode : charCode);
3097 if (handleCharBinding(cm, e, ch)) return;
3098 if (ie && !ie_upto8) cm.display.inputHasSelection = null;
3099 fastPoll(cm);
3100 }
3101
3102 // FOCUS/BLUR EVENTS
3103

Callers

nothing calls this directly

Calls 4

signalDOMEventFunction · 0.85
handleKeyBindingFunction · 0.85
handleCharBindingFunction · 0.85
fastPollFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…