project_openai_codex icon indicating copy to clipboard operation
project_openai_codex copied to clipboard

KeyCode is deprecated

Open stephanemalho opened this issue 1 year ago • 0 comments

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

stephanemalho avatar Jun 04 '23 18:06 stephanemalho