UI: Add dependency array to TerminalInput keydown useEffect (#2620)

This commit is contained in:
Lee Stutzman
2026-04-03 23:39:05 +01:00
committed by GitHub
parent 15d463d583
commit de9311f820

View File

@@ -231,7 +231,7 @@ export function TerminalInput(): React.ReactElement {
}
document.addEventListener("keydown", keyDown);
return () => document.removeEventListener("keydown", keyDown);
});
}, []);
async function onKeyDown(event: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>): Promise<void> {
const ref = terminalInput.current;