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

not defined shortcut contains option key will input strange character #144847

Closed
tjx666 opened this issue Mar 10, 2022 · 4 comments
Closed

not defined shortcut contains option key will input strange character #144847

tjx666 opened this issue Mar 10, 2022 · 4 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@tjx666
Copy link
Contributor

tjx666 commented Mar 10, 2022

Test under disable all extension and reset all the settings:

image

  • VS Code Version: 1.66.0-insider
  • OS Version: MacOS 12.2.1

@alexdima @hediet

May be this is a feature of MacOS? I can be sure of this is not feature of my Chinese input method, because this issue still exits when I toggle to builtin English input method.

The inputed character is ¬ when I trigger shortcut option + l.

@Lemmingh
Copy link
Contributor

@tjx666
Copy link
Contributor Author

tjx666 commented Mar 10, 2022

They are Alt Code Shortcuts on macOS:

https://www.webnots.com/option-or-alt-key-shortcuts-to-insert-symbols-in-mac-os-x/

Any way to disable this in VSCode?

@Lemmingh
Copy link
Contributor

They are built into macOS.

Defining them as key bindings in VS Code is a straightforward solution.

Otherwise, you have to hack into the system to remap them. Common practices are:

@tjx666 tjx666 closed this as completed Mar 10, 2022
@Lemmingh
Copy link
Contributor

VS Code and even Chromium cannot intercept all Alt shortcuts according to #41024 and https://crbug.com/887519

So, remapping at OS-level might be the only reliable solution.

@alexdima alexdima added the *duplicate Issue identified as a duplicate of another issue(s) label Mar 11, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Apr 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

3 participants