(event: HTMLElementEventMap['keyup'])
| 450 | }; |
| 451 | |
| 452 | const onKeyUp = (event: HTMLElementEventMap['keyup']) => { |
| 453 | if (event.defaultPrevented || event.isComposing) return; |
| 454 | if (!isUndoRedoKey(event)) trackState(); |
| 455 | flushChanges(); |
| 456 | // Chrome Quirk: The contenteditable may lose focus after the first edit or so |
| 457 | element.focus(); |
| 458 | }; |
| 459 | |
| 460 | const onSelect = (event: Event) => { |
| 461 | // Chrome Quirk: The contenteditable may lose its selection immediately on first focus |
nothing calls this directly
no test coverage detected
searching dependent graphs…