]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
server : (webui) Fix Shift+Enter handling (#11609)
authormashdragon <redacted>
Mon, 3 Feb 2025 09:42:55 +0000 (09:42 +0000)
committerGitHub <redacted>
Mon, 3 Feb 2025 09:42:55 +0000 (10:42 +0100)
* 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 <redacted>
examples/server/public/index.html.gz
examples/server/webui/index.html

index 582ccc0d3f8d07ce79dd9e978772f9c5ea85c426..3a2529aa2fb84485aa480d3d476e5ef27eab8e27 100644 (file)
Binary files a/examples/server/public/index.html.gz and b/examples/server/public/index.html.gz differ
index d3893ea4e1dfe2fb93ca25d765280a5a8fff650b..882570c817989205e80836f1e91b8108ce5c9545 100644 (file)
             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"