(event: KeyboardEvent)
| 218 | } |
| 219 | |
| 220 | function onPickKeyDown(event: KeyboardEvent): void { |
| 221 | if (event.key !== "Escape") return; |
| 222 | disablePickMode(); |
| 223 | deps.postMessage({ source: "hf-preview", type: "pick-mode-cancelled" }); |
| 224 | } |
| 225 | |
| 226 | function enablePickMode(): void { |
| 227 | if (pickModeActive) return; |
nothing calls this directly
no test coverage detected