Skip to content

Bug: In the Safari browser, during the compositing event process, the delete key exhibits unexpected behavior. #6370

@skyline0705

Description

@skyline0705

Lexical version: 0.16.0

Steps To Reproduce

  1. Input Some Text, and then use a different language input, such as Chinese, trigger the composition event, and don't select word or press such as enter key
  2. press backslash, when delete the first composition character, it will delete both the start composition character and the character before the first composition character
64_1720077831.mp4

The current behavior

it will delete the first composition character and the character before the first composition character

The expected behavior

only delete the beginning composition character

Impact of fix

I have try it on the version of v0.14.5, it works fine, and above v0.15.0, the mistake appears

Metadata

Metadata

Assignees

No one assigned

    Labels

    compositionRelating to IME inputs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions