(e)
| 4038 | } |
| 4039 | |
| 4040 | function onKeyPress(e) { |
| 4041 | var cm = this; |
| 4042 | if (eventInWidget(cm.display, e) || signalDOMEvent(cm, e) || e.ctrlKey && !e.altKey || mac && e.metaKey) return; |
| 4043 | var keyCode = e.keyCode, charCode = e.charCode; |
| 4044 | if (presto && keyCode == lastStoppedKey) {lastStoppedKey = null; e_preventDefault(e); return;} |
| 4045 | if ((presto && (!e.which || e.which < 10)) && handleKeyBinding(cm, e)) return; |
| 4046 | var ch = String.fromCharCode(charCode == null ? keyCode : charCode); |
| 4047 | if (handleCharBinding(cm, e, ch)) return; |
| 4048 | cm.display.input.onKeyPress(e); |
| 4049 | } |
| 4050 | |
| 4051 | // FOCUS/BLUR EVENTS |
| 4052 |
nothing calls this directly
no test coverage detected