Reverse selection followed by copy to clipboard fails on monaco with FF.

Open
#5,556 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@darshpatel1052 is already working on this.

Since Nov 3, 2026.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active

Research direction

Reproduce the issue in the Monaco Playground by making a right-to-left selection in Firefox, then copying and pasting; compare with a forward selection and with Chrome. The payload names no source file or test, so start by tracing the playground’s selection and clipboard handling. Done when reverse selections copy the selected text correctly in Firefox without breaking forward selection.

Written by the indexing model from the issue text.

Description

Browser: Firefox 158.0.1 (64-bit) on Windows 10

Reproduction: Open the Monaco Playground, drag-select text right-to-left, then copy and paste.

Expected: The selected text is copied correctly.

Actual: Reverse selections fail to copy; forward selections work.

Comparison: Chrome works on the same playground.

Accessibility setting: Enabling it doesn't resolve the issue; disabling it breaks copying in both directions.

Dominant language
JavaScript
Stars
47k
Forks
4.2k
Avg merge
3d 13h
Merged PRs (30d)
13

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/monaco-editor

All issues in microsoft/monaco-editor

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.