Skip to content

Allow Ctrl+C in LintPanel #1664

@xmedeko

Description

@xmedeko

Describe the issue

When linting shows an error, it's not possible to copy the error text by Ctrl+C (and paste into a chat, email, etc.).

The problem is in LintPanel.list.onkeydown handler, see lint/src/lint.ts:527 There's event.preventDefault() which prevents the default action, i.e. copy to clipboard.

I suggest to skip preventDefault(), if event.ctrlKey, altKey or metaKey is set.

Browser and platform

Electron.js, Chrome

Reproduction link

No response

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