Case ce-0203-arabic-ime-escape-cancels-firefox · Scenario scenario-ime-composition-escape-key

Arabic IME composition cancelled by Escape key in Firefox

OS: Windows 11 Device: Desktop or Laptop Any Browser: Firefox 120.0 Keyboard: Arabic (IME) Status: draft
composition ime escape arabic firefox windows

Phenomenon

When composing Arabic text with IME in a contenteditable element, pressing Escape cancels the composition and loses the composed text including character joining. This can interfere with UI interactions that use Escape for cancellation or closing dialogs.

Reproduction example

  1. Focus the editable area (e.g., in a modal dialog or dropdown).
  2. Activate Arabic IME.
  3. Start composing Arabic text with character joining (e.g., “مرحبا”).
  4. Press Escape to close the dialog or cancel an action.

Observed behavior

  • The compositionend event fires with incomplete data
  • The composed text including character joining is lost
  • Escape may trigger both composition cancellation and other UI actions
  • No recovery mechanism for lost composition

Expected behavior

  • Composition should be handled gracefully when Escape is pressed
  • Composed text including character joining should not be lost
  • Escape key behavior should be consistent and predictable

Browser Comparison

  • Firefox: Escape may cancel composition
  • Chrome: May have different Escape key behavior during composition
  • Edge: Similar to Chrome
  • Safari: Not applicable on Windows

Notes and possible direction for workarounds

  • Prevent Escape during active composition if composition preservation is critical
  • Consider committing composition before allowing Escape
  • Handle Escape key events carefully during composition, especially in modal contexts and with RTL text
Before
Hello مرح
Arabic composition in progress (مرح), RTL direction, characters joining
After Escape (Bug)
Hello
Escape key cancels composition, composition text including character joining lost
vs
✅ Expected
Hello مرحبا
Expected: Composition handled gracefully or preserved

Browser compatibility matrix

This matrix shows which browser and OS combinations have documented cases for this scenario. The current case is highlighted. Click on a cell to view other cases.

Current case
Confirmed
Draft
No case documented

All variants (detailed table)

Complete list of all cases for this scenario with full environment details.

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

Playground for this case

Use the reported environment as a reference and record what happens in your environment while interacting with the editable area.

Reported environment
OS: Windows 11
Device: Desktop or Laptop Any
Browser: Firefox 120.0
Keyboard: Arabic (IME)
Your environment
Sample HTML:
Event log
Use this log together with the case description when filing or updating an issue.
0 events
Interact with the editable area to see events here.

Comments & Discussion

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