Skip to content

Commit

Permalink
Merge pull request anse-app#12 from zhangnew/main
Browse files Browse the repository at this point in the history
feat: fix Chinese input method Enter Key
  • Loading branch information
ddiu8081 authored Mar 2, 2023
2 parents f04ada1 + 4f04461 commit 5dbee45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Generator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default () => {
autofocus
disabled={loading()}
onKeyDown={(e) => {
e.key === 'Enter' && handleButtonClick()
e.key === 'Enter' && !e.isComposing && handleButtonClick()
}}
w-full
px-4
Expand Down

0 comments on commit 5dbee45

Please sign in to comment.