Issue :
Users currently have to click a button to send messages. Most modern chat interfaces allow users to send messages by pressing the "Enter" key, which provides a smoother experience.
Recommendation : Add an event listener to the input field to detect the "Enter" key.
File Path : Chatbot-using-API/script.js
Code Snippet :
c```
onst chatInput = document.querySelector(".chat-input textarea");
chatInput.addEventListener("keydown", (e) => {
if (e.key === "Enter" && !e.shiftKey) {
e.preventDefault();
handleChat(); // Call your existing send function
}
});