(cm, e, override)
| 1980 | // registering a (non-DOM) handler on the editor for the event name, |
| 1981 | // and preventDefault-ing the event in that handler. |
| 1982 | function signalDOMEvent(cm, e, override) { |
| 1983 | if (typeof e == "string") { |
| 1984 | e = { |
| 1985 | type: e, |
| 1986 | preventDefault: function () { |
| 1987 | this.defaultPrevented = true |
| 1988 | } |
| 1989 | } |
| 1990 | } |
| 1991 | signal(cm, override || e.type, cm, e) |
| 1992 | return e_defaultPrevented(e) || e.codemirrorIgnore |
| 1993 | } |
| 1994 | |
| 1995 | function signalCursorActivity(cm) { |
| 1996 | var arr = cm._handlers && cm._handlers.cursorActivity |
no test coverage detected