(cm)
| 1559 | } |
| 1560 | |
| 1561 | function focusInput(cm) { |
| 1562 | if (cm.options.readOnly != "nocursor" && (!mobile || document.activeElement != cm.display.input)) |
| 1563 | cm.display.input.focus(); |
| 1564 | } |
| 1565 | |
| 1566 | function ensureFocus(cm) { |
| 1567 | if (!cm.state.focused) { focusInput(cm); onFocus(cm); } |
no outgoing calls
no test coverage detected