MCPcopy Create free account
hub / github.com/InverseUI/InverseUI-Recorder / handleInput

Method handleInput

modules/action/events/input.js:75–102  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

73 }
74
75 handleInput(event) {
76 const target = event.target;
77
78 // Skip file inputs - they're handled by change event only
79 if (target.type === 'file') return;
80
81 // Record input for dropdown detection correlation (always, even if not recording)
82 if (this.dropdownDetector) {
83 this.dropdownDetector.recordInput(target, target.value);
84 }
85
86 this.sendMessage({
87 message: "recState"
88 }, (response) => {
89 if (response && response.recState) {
90 const xpaths = this.getXpaths(target);
91
92 this.sendMessage({
93 message: "onInput",
94 xPath: xpaths,
95 content: target.value,
96 locator: getPlaywrightSelector(target)
97 });
98 } else {
99 console.log('❌ Recording not active, input ignored');
100 }
101 });
102 }
103
104 async handleChange(event) {
105 // Check recording state first

Callers

nothing calls this directly

Calls 2

getPlaywrightSelectorFunction · 0.90
recordInputMethod · 0.45

Tested by

no test coverage detected