(event: KeyboardEvent)
| 131 | * are the current target. |
| 132 | */ |
| 133 | export function defaultKeybindingsHandlerIgnore(event: KeyboardEvent) { |
| 134 | let target = event.target as HTMLElement |
| 135 | return ( |
| 136 | // Always ignore repeated keyboard events |
| 137 | event.repeat || |
| 138 | // Always ignore keyboard events during composition input |
| 139 | event.isComposing || |
| 140 | // Always allow the current target |
| 141 | (target !== event.currentTarget && |
| 142 | // Ignore contenteditable and form elements |
| 143 | target.matches("[contenteditable],input,select,textarea")) |
| 144 | ) |
| 145 | } |
| 146 | |
| 147 | /** |
| 148 | * There's a bug in Chrome that causes event.getModifierState not to exist on |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…