* Deactivate selection mode
()
| 42 | * Deactivate selection mode |
| 43 | */ |
| 44 | deactivate() { |
| 45 | if (!this.isActive) return; |
| 46 | |
| 47 | this.isActive = false; |
| 48 | |
| 49 | if (this.overlay) { |
| 50 | this.overlay.remove(); |
| 51 | this.overlay = null; |
| 52 | } |
| 53 | |
| 54 | if (this.tooltip) { |
| 55 | this.tooltip.remove(); |
| 56 | this.tooltip = null; |
| 57 | } |
| 58 | |
| 59 | document.removeEventListener('mouseover', this.boundMouseOver, true); |
| 60 | document.removeEventListener('click', this.boundClick, true); |
| 61 | document.removeEventListener('keydown', this.boundKeyDown, true); |
| 62 | |
| 63 | document.body.style.cursor = ''; |
| 64 | |
| 65 | console.log('[Pilot Picker] Selection mode deactivated'); |
| 66 | } |
| 67 | |
| 68 | /** |
| 69 | * Create overlay element for highlighting |
no outgoing calls
no test coverage detected