Skip to content

Commit

Permalink
fix enter send message on macos
Browse files Browse the repository at this point in the history
Signed-off-by: yongman <[email protected]>
  • Loading branch information
yongman committed Mar 29, 2024
1 parent c353ab3 commit 183653b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/components/home/assemblies/ChatInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 183653b

Please sign in to comment.