Skip to content

Ignore IME keydown events in the Rooster iframe bridge - #540

Open
squarepots wants to merge 1 commit into
ProtonMail:mainfrom
squarepots:fix/rooster-ime-keydown-bubbling
Open

Ignore IME keydown events in the Rooster iframe bridge#540
squarepots wants to merge 1 commit into
ProtonMail:mainfrom
squarepots:fix/rooster-ime-keydown-bubbling

Conversation

@squarepots

Copy link
Copy Markdown

Return early from the Rooster iframe bridge for keydown events where isComposing is true or keyCode is 229. This keeps IME events out of shortcut handling and cloned event dispatch. Normal keydown behavior remains unchanged.

Add contract tests for active composition, the keyCode 229 fallback, and a normal keydown event.

Verification

Focused red/green GitHub Actions run:

  • Pre-fix: both IME cases fail; the normal keydown case passes.
  • With the change: all three cases pass.
  • git diff --check passes.

Fixes #539

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.

Ignore IME keydown events in the Rooster iframe bridge

1 participant