Scenario

Paste during IME composition cancels or corrupts composition

Pasting from the clipboard while IME composition is active may cancel the composition session, replace the wrong range, or interleave pasted text with unfinished syllables—Firefox and Chrome show different behavior for Korean and Hindi IME paths.

ime
Scenario ID
scenario-ime-composition-paste

Details

Pasting from the clipboard while IME composition is active may cancel the composition session, replace the wrong range, or interleave pasted text with unfinished syllables—Firefox and Chrome show different behavior for Korean and Hindi IME paths.

Problem Overview

Paste generates beforeinput / input with insertFromPaste; composition may still be active (isComposing true), producing undefined ordering relative to compositionend.

Observed Behavior

  • Korean IME + Firefox: paste cancels composition (see cases).
  • Hindi IME + Chrome: paste disrupts Devanagari composition.

Impact

Lost composing text, mixed scripts, or duplicate fragments.

Solutions

  • Defer non-text clipboard handling until compositionend when feasible.
  • Validate selection after paste if IME was active.

References

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-0193-korean-ime-paste-cancels-firefox Windows 11 Desktop or Laptop Any Firefox 120.0 Korean (IME) draft
ce-0204-hindi-ime-paste-cancels-chrome Windows 11 Desktop or Laptop Any Chrome 120.0 Hindi (IME - Devanagari) 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.

Hindi/Devanagari

1 case

Korean

1 case

Related Scenarios

Other scenarios that share similar tags or category.

Tags: ime, composition, korean, firefox, chrome

IME composition when focus moves between elements (Korean and others)

If the user switches focus to another field, button, or nested contenteditable while Korean (or other) IME composition is active, browsers differ on whether composition is committed, cancelled, or leaves orphan state. Chrome, Safari, and Firefox do not agree; mobile adds more variance.

3 cases
Tags: ime, composition, korean, firefox

Escape key during IME composition

Escape typically cancels IME composition or closes the candidate window. In Edge, Firefox, and other engines, timing and whether partial text remains in the DOM differ—Arabic and Korean IME cases show cross-browser variance.

2 cases
Tags: ime, composition, korean, chrome

Blur and focus during IME composition (CJK and Japanese Safari)

Moving focus away from the editor while composing text (Chinese, Japanese, Korean) can cancel composition, commit partial text, or leave the IME candidate window out of sync. Safari often shows distinct behavior for Japanese; Chrome behavior for Chinese/Korean is covered in related cases.

2 cases
Tags: ime, composition, firefox, chrome

keyCode 229 and Enter during IME composition

During IME composition, keydown often reports keyCode 229 (VK_PROCESSKEY on Windows) for many keys, meaning the event is part of an input method sequence. Enter may commit composition, insert a newline, or be swallowed—Chrome vs Firefox vs Japanese layouts differ. Handlers that assume Enter always means insertParagraph break composition incorrectly.

3 cases
Tags: ime, composition, korean, firefox

Korean IME composition causes editor crash (Firefox)

On Firefox with Windows 10 and Korean IME, specific key combination during IME composition causes the editor to crash. The crash occurs when typing certain sequences with the Korean IME.

1 case

Comments & Discussion

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