Skip to content
This repository was archived by the owner on Apr 16, 2026. It is now read-only.
This repository was archived by the owner on Apr 16, 2026. It is now read-only.

Unexpected text deletion on selection related to dead keys #6893

@silverwind

Description

@silverwind

On macOS with Browsers Firefox 99 or Safari 15 (but not in Chrome 99), there is a bug where Codemirror unexpectedly deletes content when accent characters like ` are present and when the current keyboard layout has that key as a dead key. Disabling the dead key in the keyboard layout eliminates the issue.

Here's an example of entering a text with backtick characters and then using the mouse to select the content via a drag action:

simple2

For comparison, a regular <textarea> does not show such issues:

simple3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions