diff --git a/2-copy-of-code/lesson-03/chatbot.html b/2-copy-of-code/lesson-03/chatbot.html index a09dc35..e8d2d7c 100755 --- a/2-copy-of-code/lesson-03/chatbot.html +++ b/2-copy-of-code/lesson-03/chatbot.html @@ -45,12 +45,19 @@ setInputText(''); } + function handleKeyDown(event) { + if (event.key === 'Enter') { + sendMessage(); + } + } + return ( <>