(cm)
| 2320 | } |
| 2321 | |
| 2322 | function focusInput(cm) { |
| 2323 | if (cm.options.readOnly != "nocursor" && (!mobile || activeElt() != cm.display.input)) |
| 2324 | cm.display.input.focus(); |
| 2325 | } |
| 2326 | |
| 2327 | function ensureFocus(cm) { |
| 2328 | if (!cm.state.focused) { focusInput(cm); onFocus(cm); } |
no test coverage detected
searching dependent graphs…