MCPcopy Create free account
hub / github.com/altic-dev/Pilot / deactivate

Method deactivate

public/picker/react-component-picker.js:44–66  ·  view source on GitHub ↗

* Deactivate selection mode

()

Source from the content-addressed store, hash-verified

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

Callers 3

handleClickMethod · 0.95
handleKeyDownMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected