You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ISO Keyboards: Backslash and IntlBackslash "swapped" #24153
bugIssue identified by VS Code Team member as probable bugkeybindingsVS Code keybinding issueskeyboard-layoutKeyboard layout issuesmacosIssues with VS Code on MAC/OS X
Whenever I try to use shortcuts which use the § and ` keys, their values appear to be reversed. The keys work correctly on every other app and everywhere else within VS Code; it's specifically when they're used as shortcuts. The problem extends to when I try to rebind them as well:
(Ignore the 'shift+command', they came from taking the screenshot!)
To be clear, the 'key' value is the correct one and the 'UI' value is the incorrect one the shortcut recognises.
changed the title [-]Backslash and IntlBackslash "swapped" under British Keyboard Layout[/-][+]British Keyboard Layout: Backslash and IntlBackslash "swapped"[/+]on Apr 10, 2017
changed the title [-]British Keyboard Layout: Backslash and IntlBackslash "swapped"[/-][+]ISO Keyboards: Backslash and IntlBackslash "swapped"[/+]on Apr 28, 2017
Thanks to investigation help from Johannes Rieken (@jrieken) and his ISO keyboard, we were able to reproduce. The root problem is simple, our native C++ node module reads the scan codes -> chars mapping correctly, but Chromium decides to "swap" the KeyboardEvent.code[Backquote] and [IntlBackslash] on OSX on ISO keyboards in order to try to stay w3c compliant.
bugIssue identified by VS Code Team member as probable bugkeybindingsVS Code keybinding issueskeyboard-layoutKeyboard layout issuesmacosIssues with VS Code on MAC/OS X
Activity
alexdima commentedon Apr 7, 2017
Tom Burnett (@TomBurnettUK) This might be an issue in our C++ node module that reads information about the current keyboard layout. Could you please:
F1 > Developer: Inspect Keyboard mappingsI could then examine what the C++ node module determines for the
[Backquote]scan code.TomBurnettUK commentedon Apr 7, 2017
Sure! Here's the file.
KeyMappings.txt
[-]Incorrect key values for shortcuts[/-][+]Backslash and IntlBackslash "swapped" under British Keyboard Layout[/+][-]Backslash and IntlBackslash "swapped" under British Keyboard Layout[/-][+]British Keyboard Layout: Backslash and IntlBackslash "swapped"[/+][-]British Keyboard Layout: Backslash and IntlBackslash "swapped"[/-][+]ISO Keyboards: Backslash and IntlBackslash "swapped"[/+]alexdima commentedon Apr 28, 2017
Thanks to investigation help from Johannes Rieken (@jrieken) and his ISO keyboard, we were able to reproduce. The root problem is simple, our native C++ node module reads the scan codes -> chars mapping correctly, but Chromium decides to "swap" the
KeyboardEvent.code[Backquote]and[IntlBackslash]on OSX on ISO keyboards in order to try to stay w3c compliant.Here is the offending code:
https://cs.chromium.org/chromium/src/ui/events/keycodes/keyboard_code_conversion_mac.mm?type=cs&q=LMGetKbdType+package:%5Echromium$&l=809
We need to figure out a way on our side to "unswap" them...
Fixes #34031: Remove workaround for Backslash and IntlBackslash "swap…