Skip to content

Bug: REDO_COMMAND not triggered with non-English keyboard layouts (Ctrl+Y / Ctrl+Shift+Z) #8147

@kenclaron

Description

@kenclaron

Lexical version: 0.40.0

Steps To Reproduce

  1. OS: Windows 10 (22H2), Windows 11 (24H2), Ubuntu 22.04.5 LTS / Browser: Google Chrome 140.0.7339.127, Google Chrome 144.0.7559.133, Firefox Developer Edition 148.0b15
  2. Set English and another keyboard layout in the OS (for example, English (US) and Russian (RU)).
  3. Enter any text into the lexical input field so that a historyUndo action becomes available.
  4. Press the keyboard shortcut (Ctrl+Z) to trigger the historyUndo native browser event.
  5. Press the keyboard shortcut (Ctrl+Y or Ctrl+Shift+Z) to trigger the historyRedo native browser event.

Link to code example: https://playground.lexical.dev

The current behavior

The expected behavior

Impact of fix

  • Affects all users who are not using an English keyboard layout.

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreReconciler, DOM, Selection, Node, Events, Composition

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions