debauchee / barrier

Open-source KVM software
Other
27.23k stars 1.5k forks source link

Bug: unable to type punctuations on client computer if server computer input method is set to Chinese #1658

Open wanderseeme opened 2 years ago

wanderseeme commented 2 years ago

What happened?

You can reproduce this bug by the following steps:

  1. set server computer (mine is macOS Monterey 12.3.1) input method to macOS build-in Chinese (or any input methods that requires typing+selection steps, i.e., you have to type certain charater 'nihao' (typing step) and select '你好' in the input method (selection step) to actually get '你好' on text input fields)
  2. use Barrier to type on the client computer (mine is Windows 11 Professional, 21H2 22000.493), most English characters will do fine, but you can not type punctuations (such as , . ( ) \ ;) in client computer.
  3. to actually type punctuations in client computer, I always have to set input method in server computer to English first, and then use Barrier to switch to client computer to type normally.

Possible solution:

  1. ShareMouse is a good reference, maybe just get keyboard typing events directly?
  2. automaitcally switch to English input method when switching can be a workaround.

Version

v2.4.0

Git commit hash (if applicable)

No response

If applicable, where did you install Barrier from?

GitHub

What OSes are you seeing the problem on? (Check all that apply)

Windows, macOS

What OS versions are you using?

Server computer: macOS Monterey 12.3.1 Client computer: Windows 11 Professional, 21H2 22000.493

Relevant log output

No response

Any other information

No response

okerivy commented 1 year ago

I also encountered the same problem on the Mac. Can you tell me if you have solved it