* Handle click events
(event)
| 127 | * Handle click events |
| 128 | */ |
| 129 | handleClick(event) { |
| 130 | if (!this.isActive) return; |
| 131 | |
| 132 | event.preventDefault(); |
| 133 | event.stopPropagation(); |
| 134 | |
| 135 | const element = event.target; |
| 136 | if (!element) return; |
| 137 | |
| 138 | try { |
| 139 | const componentInfo = this.extractComponentInfo(element); |
| 140 | this.sendToParent(componentInfo); |
| 141 | this.deactivate(); |
| 142 | } catch (error) { |
| 143 | console.error('[Pilot Picker] Error extracting component info:', error); |
| 144 | this.sendError('Failed to extract component information'); |
| 145 | this.deactivate(); |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | /** |
| 150 | * Handle keyboard events |
nothing calls this directly
no test coverage detected