aboutsummaryrefslogtreecommitdiff
path: root/chat/chat-ui.html
diff options
context:
space:
mode:
Diffstat (limited to 'chat/chat-ui.html')
-rw-r--r--chat/chat-ui.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/chat/chat-ui.html b/chat/chat-ui.html
index efe0347..5b8e421 100644
--- a/chat/chat-ui.html
+++ b/chat/chat-ui.html
@@ -62,7 +62,7 @@
</div>
<div class="input-area">
- <textarea id="chatInput" placeholder="Type your message..." autocomplete="off" rows="1" onfocus="this.style.height='80px'" oninput="autoExpand(this);if(event.key==='Enter'&&!event.shiftKey){event.preventDefault();sendMessage();}"></textarea>
+ <textarea id="chatInput" placeholder="Type your message..." autocomplete="off" rows="1" onfocus="this.style.height='80px'" onkeydown="if(event.key==='Enter'&&!event.shiftKey){event.preventDefault();sendMessage();}" oninput="autoExpand(this)"></textarea>
<button class="btn btn-primary" onclick="sendMessage()">Send</button>
</div>
</main>