Skip to content

Fix accidental send when confirming IME composition - #575

Open
naliazheli wants to merge 1 commit into
andrewyng:mainfrom
naliazheli:fix/ime-enter-composition
Open

Fix accidental send when confirming IME composition#575
naliazheli wants to merge 1 commit into
andrewyng:mainfrom
naliazheli:fix/ime-enter-composition

Conversation

@naliazheli

Copy link
Copy Markdown

Summary

  • ignore composer key events while an IME composition is active
  • include the WebKit/Safari keyCode === 229 compatibility fallback
  • add regressions for standards-based composition and the WebKit fallback

This prevents Enter from submitting a message when it is only confirming Chinese, Japanese, or Korean input. The guard runs before slash-command keyboard handling so composition confirmation cannot accidentally select or submit a command either.

Tests

  • npm test -- --run src/components/Composer.skills.test.tsx
  • NODE_OPTIONS=--localstorage-file=/tmp/openworker-ime-pr-vitest-storage npm test (136 passed)
  • npm run build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant