(element: Element)
| 12 | } |
| 13 | |
| 14 | export function isCursorAtStart(element: Element) { |
| 15 | const {selectionStart, selectionEnd} = getSelectionRange(element) |
| 16 | |
| 17 | return ( |
| 18 | selectionStart === selectionEnd && |
| 19 | (selectionStart ?? /* istanbul ignore next */ 0) === 0 |
| 20 | ) |
| 21 | } |
no test coverage detected