فهرست منبع

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>
mashdragon 11 ماه پیش
والد
کامیت
d92cb67e37
2فایلهای تغییر یافته به همراه0 افزوده شده و 1 حذف شده
  1. BIN
      examples/server/public/index.html.gz
  2. 0 1
      examples/server/webui/index.html

BIN
examples/server/public/index.html.gz


+ 0 - 1
examples/server/webui/index.html

@@ -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"