Scenario

Duplicate keydown events with keyCode 229 and 13 when pressing Enter during IME composition

Duplicate keydown events with keyCode 229 and 13 when pressing Enter during IME composition

Scenario ID
scenario-ime-composition-keydown-keycode-229

Scenario flow

Visual view of how this scenario connects to its concrete cases and environments. Nodes can be dragged and clicked.

React Flow mini map

Variants

Each row is a concrete case for this scenario, with a dedicated document and playground.

Case OS Device Browser Keyboard Status
ce-0210-ime-keydown-keycode-229-enter-chrome Windows 11 Desktop or Laptop Any Chrome 120.0 Korean (IME) draft
ce-0211-ime-keydown-keycode-229-enter-firefox Windows 11 Desktop or Laptop Any Firefox 120.0 Korean (IME) draft
ce-0212-ime-keydown-keycode-229-enter-japanese-chrome Windows 11 Desktop or Laptop Any Chrome 120.0 Japanese (IME) draft

Browser compatibility

This matrix shows which browser and OS combinations have documented cases for this scenario. Click on a cell to view the specific case.

Confirmed
Draft
No case documented

Cases

This scenario affects multiple languages. Cases are grouped by language/input method below.

Japanese

1 case

Korean

2 cases

Related Scenarios

Other scenarios that share similar tags or category.

Tags: composition, ime, keydown

insertParagraph preventDefault breaks IME composition state in Safari

In Safari desktop, when preventDefault() is called on keydown or beforeinput events for insertParagraph (Enter key), the IME composition state becomes corrupted. Subsequent text input fails to trigger proper input events, causing characters to not be inserted or composition to malfunction.

3 cases
Tags: composition, ime

beforeinput and input events have different inputType values

During IME composition or in certain browser/IME combinations, the beforeinput event may have a different inputType than the corresponding input event. For example, beforeinput may fire with insertCompositionText while input fires with deleteContentBackward. This mismatch can cause handlers to misinterpret the actual DOM change and requires storing beforeinput's targetRanges for use in input event handling.

1 case
Tags: composition, ime

Selection mismatch between beforeinput and input events

The selection (window.getSelection()) in beforeinput events can differ from the selection in corresponding input events. This mismatch can occur during IME composition, text prediction, or when typing adjacent to formatted elements like links. The selection in beforeinput may include adjacent formatted text, while input selection reflects the final cursor position.

1 case
Tags: composition, ime

Browser translation breaks contenteditable editing

When browser translation features (like Google Translate) are activated, they manipulate the DOM by replacing text content and injecting elements. This can break contenteditable functionality, causing cursor positioning issues, event handling problems, and IME composition failures.

1 case

Comments & Discussion

Have questions, suggestions, or want to share your experience? Join the discussion below.