(e)
| 7183 | } |
| 7184 | |
| 7185 | function onKeyPress(e) { |
| 7186 | var cm = this; |
| 7187 | if (eventInWidget(cm.display, e) || signalDOMEvent(cm, e) || e.ctrlKey && !e.altKey || mac && e.metaKey) { return } |
| 7188 | var keyCode = e.keyCode, charCode = e.charCode; |
| 7189 | if (presto && keyCode == lastStoppedKey) {lastStoppedKey = null; e_preventDefault(e); return} |
| 7190 | if ((presto && (!e.which || e.which < 10)) && handleKeyBinding(cm, e)) { return } |
| 7191 | var ch = String.fromCharCode(charCode == null ? keyCode : charCode); |
| 7192 | // Some browsers fire keypress events for backspace |
| 7193 | if (ch == "\x08") { return } |
| 7194 | if (handleCharBinding(cm, e, ch)) { return } |
| 7195 | cm.display.input.onKeyPress(e); |
| 7196 | } |
| 7197 | |
| 7198 | var DOUBLECLICK_DELAY = 400; |
| 7199 |
nothing calls this directly
no test coverage detected