Scenario

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.

ime
Scenario ID
scenario-ime-composition-escape-key

Details

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.

Problem Overview

Editors that use Escape for command palettes or modal close must not steal the key during active composition.

Observed Behavior

  • Korean IME on Edge: Escape cancels with specific side effects (see cases).
  • Arabic IME on Firefox: Escape cancels composition.

Impact

Partial syllables left behind or removed inconsistently; conflicts with app-level Escape handlers.

Solutions

  • If isComposing, let Escape propagate to the IME first, or mirror platform behavior explicitly after testing.

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-0190-korean-ime-escape-cancels-edge Windows 11 Desktop or Laptop Any Edge 120.0 Korean (IME) draft
ce-0203-arabic-ime-escape-cancels-firefox Windows 11 Desktop or Laptop Any Firefox 120.0 Arabic (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.

Arabic

1 case

Korean

1 case

Related Scenarios

Other scenarios that share similar tags or category.

Tags: ime, composition, korean, firefox

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

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.

2 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
Tags: ime, composition, korean

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

Comments & Discussion

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