(cm)
| 2300 | } |
| 2301 | |
| 2302 | function focusInput(cm) { |
| 2303 | if (cm.options.readOnly != "nocursor" && (!mobile || activeElt() != cm.display.input)) |
| 2304 | cm.display.input.focus(); |
| 2305 | } |
| 2306 | |
| 2307 | function ensureFocus(cm) { |
| 2308 | if (!cm.state.focused) { focusInput(cm); onFocus(cm); } |
no test coverage detected