question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Different / weird key mappings in terminal in Chrome

See original GitHub issue

OS/Web Information

  • Web Browser: Chrome 93.0.4577.63 64 bits / Firefox 91.0.2 64 bits
  • Local OS: Ubuntu 20.04
  • Remote OS: Ubuntu 20.04
  • Remote Architecture: amd4
  • code-server --version: 3.11.1 c680aae973d83583e4a73dc0c422f44021f0140e

Steps to Reproduce

  1. With a french keyboard
  2. Open a terminal under Chrome
  3. Type some non-letter keys (example : @&é"'…)

Expected

The letters @&é"’ shoud appear in terminal

Actual

  • with firefox : the letters @&é"’ appear in terminal (good)
  • with chrome : the letters '123456 appear in terminal (bad)

Screenshot

Firefox result

Chrome result

Notes

This issue is only present in terminal, for editors all keys are OK for all browsers. Changing vscode keyboard layout from us to fr have absolutely no effect. Trying to remap keys in keyboardLayout.json have no effect.

Code-server runs from these 2 Dockerfiles :

https://dev.solidev.net/school/develspace/develspace-services/-/blob/develop/base/Dockerfile https://dev.solidev.net/school/develspace/develspace-services/-/blob/develop/vscode/Dockerfile

This issue can be reproduced in VS Code: No

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
jmbarbiercommented, Sep 6, 2021
1reaction
jmbarbiercommented, Oct 27, 2021

Follow-up : https://bugs.chromium.org/p/chromium/issues/detail?id=1248395 is closed and fixed, terminal works great now… 🍾

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Chrome ignores XmodMap key mapping - Ask Ubuntu
All programs in Ubuntu (such as gnome-terminal, xterm, Firefox, gedit) respect this mapping. However, Google Chrome ignores this mapping, resulting in the page ......
Read more >
[Chromoting] Keyboard layout is wrong when both client and ...
Chrome should always map that key to the same USB keycode, but it doesn't. It looks like we need 3 different types of...
Read more >
Chromebook keyboard shortcuts - Google Support
Display hidden files in the Files app, Ctrl + . (period) ; Open the status area (where the time appears), Shift + Alt...
Read more >
Weird keyboard behaviour by Emacs in a terminal [duplicate]
The terminal only deals in characters, not keypresses, so there's no way for the other end to know what modifier keys were in...
Read more >
Adapted my preferred keyboard mapping to Chrome OS - Reddit
It is my factual opinion that the best keyboard mapping is to have the <kbd>Caps</kbd> key send an <kbd>Esc</kbd> key event when pressed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found