project_openai_codex
project_openai_codex copied to clipboard
KeyCode is deprecated
to fix the eslint warning we can use:
form.addEventListener("submit", handleSubmit); form.addEventListener("keyup", (e) => { if (e.key === "Enter") { handleSubmit(e); } });
instead of keyCode