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

Method activate

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

* Activate selection mode

()

Source from the content-addressed store, hash-verified

23 * Activate selection mode
24 */
25 activate() {
26 if (this.isActive) return;
27
28 this.isActive = true;
29 this.createOverlay();
30 this.createTooltip();
31
32 document.addEventListener('mouseover', this.boundMouseOver, true);
33 document.addEventListener('click', this.boundClick, true);
34 document.addEventListener('keydown', this.boundKeyDown, true);
35
36 document.body.style.cursor = 'crosshair';
37
38 console.log('[Pilot Picker] Selection mode activated');
39 }
40
41 /**
42 * Deactivate selection mode

Callers 1

Calls 2

createOverlayMethod · 0.95
createTooltipMethod · 0.95

Tested by

no test coverage detected