mirror of
https://github.com/coaidev/coai.git
synced 2025-06-01 03:10:20 +09:00
fix enter send message on macos
Signed-off-by: yongman <yming0221@gmail.com>
This commit is contained in:
parent
c353ab3577
commit
183653b6a0
@ -41,7 +41,7 @@ function ChatInput({
|
||||
}}
|
||||
placeholder={sender ? t("chat.placeholder-enter") : t("chat.placeholder")}
|
||||
onKeyDown={async (e) => {
|
||||
if (e.key === "Enter") {
|
||||
if (e.key === "Enter" && e.keyCode != 229) {
|
||||
if (sender) {
|
||||
// on Enter, clear the input
|
||||
// on Ctrl + Enter or Shift + Enter, keep the input
|
||||
|
Loading…
Reference in New Issue
Block a user