MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / handleInputKeyDown

Function handleInputKeyDown

web/src/js/components/Modes/LocalDropdown.tsx:94–100  ·  view source on GitHub ↗
(e: React.KeyboardEvent<HTMLInputElement>)

Source from the content-addressed store, hash-verified

92 }, [currentSearch, currentProcesses]);
93
94 const handleInputKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {
95 e.stopPropagation();
96 if (e.key === "Enter") {
97 addProcessToSelection(currentSearch);
98 setCurrentSearch("");
99 }
100 };
101
102 const [isPopoverVisible, setPopoverVisible] = React.useState(false);
103

Callers

nothing calls this directly

Calls 1

addProcessToSelectionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…