-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
IntlBackslash swapped with Backquote on ISO keyboards on Chrome & Firefox #163432
Comments
Hmm... this works for me (ctrl + `), but I have a different issue. The keybindings from my window tiling app stopped working entirely. Perhaps related? |
I think that's because vscode intercepts all keyboard shortcuts, COMMAND+SHIFT+B to toggle bookmarks bar also doesn't work |
Just to add, I noticed this change after upgrading to the latest release. |
In case this helps https://github.com/microsoft/vscode/wiki/Keybinding-Issues#summary |
@roblourens is there a reason why it's broken in VSCode Web, but not on desktop? Setting |
Yes, on the desktop we have a native node module which we use to detect the key mappings. On the web, we need to rely on web APIs, which are incomplete. |
This is happening to me on desktop FWIW.
…On Sun, Oct 23, 2022, 12:47 PM Alexandru Dima ***@***.***> wrote:
is there a reason why it's broken in VSCode Web
Yes, on the desktop we have a native node module which we use to detect
the key mappings. On the web, we need to rely on web APIs, which are
incomplete.
—
Reply to this email directly, view it on GitHub
<#163432 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACUPVGTJXZSPVBEQWSLY6TWEVT2NANCNFSM6AAAAAARDK5H5U>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
= Keybindings broken in VSCode web = Similar also happening on Android: Setting `"keyboard.dispatch": "keyCode"` fixes the problem. ---- The portable way that should work from ancient IE to any modern mainstream browser is: if (
e.ctrlKey === true &&
(
e.keyCode === 65 ||
e.which === 65 ) ) {
// E.g. handling 【Ctrl】 + 【A】.
}; ]] |
@fny @MasterInQuestion Keybindings are OS, browser and keyboard layout dependent, which means you are running into problems which are distinct from the problem reported by the OP. Please open separate issues if you still have keybindings problems. |
@samdenty What browser are you using? |
Chrome on MacOS with British layout |
@samdenty Thanks for your prompt reply. I believe this is caused by this piece of code in Chromium: https://source.chromium.org/chromium/chromium/src/+/main:ui/events/keycodes/keyboard_code_conversion_mac.mm;l=809-820?q=LMGetKbdType%20package:%5Echromium$&ss=chromium where they swap Backslash and IntlBackslash on macOS on ISO keyboards. For the VS Code build, we maintain a patch where we delete that code. We hit this before with #24153 Does this reproduce in Firefox? Edit: Found a newer bug on Chromium's side: https://bugs.chromium.org/p/chromium/issues/detail?id=1296783 fyi @deepak1556 |
It works for me in safari but it's broken for me in Firefox & Chrome with |
Issue for Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1755096 |
Awesome, this should help us remove the patch. |
Yep, I can confirm it's broken in both Firefox/Chrome with doing:
|
This comment was marked as off-topic.
This comment was marked as off-topic.
Still broken on Chrome almost a year later. |
The keybindings are broken on MacOS for "`" & "§". You can see this by going to https://vscode.dev / https://github.dev on MacOS, opening the keyboard shortcut picker, clicking on a shortcut to edit & pressing both them keys.
Alternatively you can reproduce by pressing "CTRL+`", to open the terminal which doesn't work
ScanCode 106 (106 in enum) is detected as
IntlBackslash
(§) when it should be "`"vscode/src/vs/base/common/keyCodes.ts
Line 334 in 5e2f5e5
This is with the British layout:
The text was updated successfully, but these errors were encountered: