diff --git a/client/script.js b/client/script.js index d027aa76..7ad43dbb 100644 --- a/client/script.js +++ b/client/script.js @@ -114,7 +114,7 @@ const handleSubmit = async (e) => { form.addEventListener('submit', handleSubmit) form.addEventListener('keyup', (e) => { - if (e.keyCode === 13) { + if (e.key === "Enter") { handleSubmit(e) } }) \ No newline at end of file