Skip to content

Conversation

@cweijan
Copy link
Contributor

@cweijan cweijan commented Jan 7, 2025

Hi @Tyriar, when I use the terminal to input Chinese on MacOS, if I press CapsLock, it will trigger English input twice, but it should only trigger once. This PR fixes this problem.

Produce:

  1. Enable PinYin IME
  2. Type "asd"(Chinese auto completions appear)
  3. Caps lock on
  4. Result:
  • Expected input: asd
  • Actual input: a s dasd
image image

My processor is Mac M1 Pro, and this problem occurs in https://xtermjs.org and VS Code terminal, but I am surprised that no one has reported this problem. This has troubled me for a long time, I'm pretty sure this is a bug, because on the native terminal on MacOS, it behaves as expected. Looking forward to your reply.

Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This change looks relatively safe to merge.

It may have been reported, I've consolidated all Chinese IME problems into #4486

@Tyriar Tyriar self-assigned this Jan 8, 2025
@Tyriar Tyriar added this to the 6.0.0 milestone Jan 8, 2025
@Tyriar Tyriar enabled auto-merge January 8, 2025 17:25
@Tyriar Tyriar merged commit c21f32d into xtermjs:master Jan 8, 2025
12 checks passed
@cweijan
Copy link
Contributor Author

cweijan commented Jan 9, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants