mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-09-11 04:56:56 +02:00
server (webui): Fix Premature Submission During IME Conversion (#11971)
* fix skip ime composing * fix npm rebuild * fix warn --------- Co-authored-by: momonga <[email protected]> Co-authored-by: Xuan Son Nguyen <[email protected]>
This commit is contained in:
co-authored by
momonga
Xuan Son Nguyen
parent
c5d91a7400
commit
c392e5094d
@@ -228,6 +228,7 @@ export default function ChatScreen() {
|
||||
value={inputMsg}
|
||||
onChange={(e) => setInputMsg(e.target.value)}
|
||||
onKeyDown={(e) => {
|
||||
if (e.nativeEvent.isComposing || e.keyCode === 229) return;
|
||||
if (e.key === 'Enter' && e.shiftKey) return;
|
||||
if (e.key === 'Enter' && !e.shiftKey) {
|
||||
e.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user