visual studio code – Linux (Raspberry Pi Bullseye) VSCode – Why aren’t e and r keys (and maybe others) displaying properly when typed
I have a Raspberry Pi 4B+ on which I have installed Debian Buster. I installed VSCode and it does not handle some characters properly. For example r->{tab}, e->{backspace}. I had installed with a bunch of extensions and had the above problem. I uninstalled and got rid of all the vestiges of configuration and extensions I could find. I then reinstalled VSCode and the problem persists. I set Developer: Toggle Keyboard Shortcuts Troubleshooting and got the following log entries for the r key:
2023-05-17 12:06:31.464 [info] [KeybindingService]: / Soft dispatching keyboard event
2023-05-17 12:06:31.466 [info] [KeybindingService]: | Resolving [Tab]
2023-05-17 12:06:31.467 [info] [KeybindingService]: \ From 9 keybinding entries, matched tab, when: editorTextFocus && !editorReadonly && !editorTabMovesFocus, source: built-in.
2023-05-17 12:06:31.469 [info] [KeybindingService]: / Received keydown event - modifiers: [], code: Tab, keyCode: 82, key: r
2023-05-17 12:06:31.470 [info] [KeybindingService]: | Converted keydown event - modifiers: [], code: Tab, keyCode: 48 ('R')
2023-05-17 12:06:31.471 [info] [KeybindingService]: | Resolving [Tab]
2023-05-17 12:06:31.472 [info] [KeybindingService]: \ From 9 keybinding entries, matched tab, when: editorTextFocus && !editorReadonly && !editorTabMovesFocus, source: built-in.
2023-05-17 12:06:31.474 [info] [KeybindingService]: + Invoking command tab.
Somehow, earlier, I dumped the System keybindings.json file. I don’t remember how. At any rate I did see an entry with “tab” as the key and several data keys with variants of “r” as the value.
I am using ssh to log into the RPi and code displays in a XQuartz window back to my Mac
Note that I am also running VSCode on my MacBook and it has no problems.
Read more here: Source link