microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.61k stars 28.66k forks source link

Terminal always show uppercase letters when using caps lock to switch input source #109565

Closed jasonxia23 closed 2 years ago

jasonxia23 commented 3 years ago

Steps to Reproduce:

  1. Set system input source to shuangpin, before which add shuangpin as an input source. image
  2. Lock caps lock, with caps lock unlock, you will input Chinese character, which is an expected behavior.
  3. Input something in the integrated terminal, I can only input upper case letters. But when I input something in editor or some other application, I can input lower case letters.

Does this issue occur when all extensions are disabled?: Yes.

Actually I think it might be the problem of xterm.js. Xterm.js might decide the letters by cap lock. This is not as expected with shuangpin mode.

Tyriar commented 3 years ago

This looks like an upstream issue in https://github.com/xtermjs/xterm.js

jasonxia23 commented 3 years ago

Thanks for replying. Opened an issue for xterm.js. https://github.com/xtermjs/xterm.js/issues/3155