server : (webui) Fix Shift+Enter handling (#11609)

* Fix Shift+Enter handling

`exact` on the Enter handler means the message is not sent when Shift+Enter is pressed anyway

* build index.html.gz

---------

Co-authored-by: Xuan Son Nguyen <son@huggingface.co>
This commit is contained in:
mashdragon 2025-02-03 09:42:55 +00:00 committed by GitHub
parent 6eecde3cc8
commit d92cb67e37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 1 deletions

Binary file not shown.

View file

@ -154,7 +154,6 @@
placeholder="Type a message (Shift+Enter to add a new line)"
v-model="inputMsg"
@keydown.enter.exact.prevent="sendMessage"
@keydown.enter.shift.exact.prevent="inputMsg += '\n'"
:disabled="isGenerating"
id="msg-input"
dir="auto"