* Handle keyboard events
(event)
| 150 | * Handle keyboard events |
| 151 | */ |
| 152 | handleKeyDown(event) { |
| 153 | if (!this.isActive) return; |
| 154 | |
| 155 | // Escape key to cancel |
| 156 | if (event.key === 'Escape') { |
| 157 | event.preventDefault(); |
| 158 | this.deactivate(); |
| 159 | this.sendToParent({ type: 'picker-cancelled' }); |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | /** |
| 164 | * Highlight the given element |
nothing calls this directly
no test coverage detected