Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not hijack Ctrl+L #41

Open
yurikhan opened this issue Jul 29, 2021 · 2 comments
Open

Do not hijack Ctrl+L #41

yurikhan opened this issue Jul 29, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@yurikhan
Copy link

The editor component used by Edotor seems to hijack the Ctrl+L shortcut for its “select line” action. In browsers, Ctrl+L is used to focus the address bar, and half the users have it in their muscle memory. (The other half uses Alt+D.)

When the current tab is Edotor and I want to focus the address bar, I subconsciously press Ctrl+L and start typing a new URL, but Ctrl+L selects my current line and the text typed next overwrites the selected line.

I use Edotor in Firefox with the custom flag browser.urlbar.openintab set to true, so focusing the address bar, typing an address and pressing Enter is my primary way of opening new tabs.

It would be nice if Edotor configured the Monaco editor to disable this binding or move it to a different key.

@nikeee nikeee added the enhancement New feature or request label Jul 29, 2021
@nikeee
Copy link
Owner

nikeee commented Oct 2, 2021

This annoyed me as well.

Ref for implementation: microsoft/monaco-editor#287 (comment)

@nikeee
Copy link
Owner

nikeee commented May 7, 2022

New tracking issue:
microsoft/monaco-editor#102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants