Skip to content

[Bug] Monaco editor on firefox ignores first input after highlighting word via keyboard #5281

@cac-it

Description

@cac-it

Reproducible in vscode.dev or in VS Code Desktop?

  • Not reproducible in vscode.dev or VS Code Desktop

Reproducible in the monaco editor playground?

Monaco Editor Playground Link

https://microsoft.github.io/monaco-editor/playground.html?source=v0.55.1#example-creating-the-editor-hello-world

Monaco Editor Playground Code

const value = /* set from `myEditor.getModel()`: */ `function hello() {
	alert('Hello World');
}`;

// Hover on each property to see its docs!
const myEditor = monaco.editor.create(document.getElementById("container"), {
	value,
	language: "javascript",
	automaticLayout: true,
});

Reproduction Steps

  1. Open link in Firefox Developer Edition
  2. Highlight a word with Ctrl-Shift-Left
  3. Type anything - It will ignore the first keystroke.

Actual (Problematic) Behavior

Skipping first keystroke.

Expected Behavior

Not skipping any keystroke

Additional Context

monaco-firefox-bug.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions