-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JIS (Japan Industrial Standards) key mapping issues (mac -> win) #5027
Comments
@kmk-matsui Hi, thanks for your feedback. But I can hardly support this issue. The inputs across OS is based on the map of "key-code". I've tested to grab the key codes on my macOS. The "converion key" and "non-convertion key" can not be grabbed, no codes are shown. I don't know if it's because my macOS is not targeted at Japanese users. Can you please run the attached process to test the key codes ? You can also use the code here if u use rust. https://github.com/fufesou/rdev/blob/master/examples/grab.rs Just download the attached file, and then
And then press the keyboard. It will print somethings like: It would be very grateful if you could run all the corresponding keys on your keyboard on your computer and post the key-code map here. |
I think the non-conversion key and the conversion key on Windows correspond to the 英数(eisu) key and the かな(kana) key on MacOS. press a key "non-convertion key"(英数キー)
press a key "converion key" (かなキー)
|
The soft keyboard cannot be grabbed by the process. I've plugged in a physical JIT keyboard, but the "non-convertion key" and "converion key" can not be grabbed. Thanks for the quick and useful reply. I'll add the key-code map later. |
Signed-off-by: fufesou <shuanglongchen@yeah.net>
The fix is merged, please test with the nightly build. https://github.com/rustdesk/rustdesk/releases/nightly. |
@fufesou |
@fufesou |
There's no "key-code" map between the same OSs. I'll try to find the map later by another test method. |
@kmk-matsui Hi, I've tried mac -> win. My mac cannot detect key event of "Non-Convert" and "Convert". I'll try to find the reason. I can send Non-Convert and Convert from my mac computer to windows computer by exchanging the mapping of "A" with "Non-Convert" and "B" with "Convert". It works fine. |
@fufesou |
Thanks. |
likely because "convert" and "nonconvert" arent present on on mac keyboards, and Mac maybe doesnt know what these even are and ignores them.
you mean by exchanging the mapping on windows, or in rustdesk, or where? it seems the Keymap handling is similar or the same as the W3C KeyEvent.Code since mac uses a different set of keys (kana/Eisu - which is alphanumeric, which map as Lang1 and Lang2 events) next to the spacebar, while windows has an Eisu on the Caps Lock Key (which doesnt seem to have its own function code but just seems to call "CapsLock") or how do the keys compare to each other and what would be the best option to send between OSes? also does Mac Handle the Japanese keys on non-apple keyboards at all and if yes, how so? so ideally would be maybe a filling of this table. from mac to windows
is what I grasp from OP
|
@kmk-matsui can you confirm I have the state of how it should be and is for mac -> JIS keyboard in the above comment correct? (and maybe just in case someone cares think about the JIS -> Mac Section) |
I changed rustdesk. I mean, the key mappings from mac to win are right. But I cannot detect the key events on my mac. |
meaning you dont get to see the Lang1 and Lang2 when pressing the keys on a mac keyboard? or are you using a standard JIS kb on a mac? |
Yes, there are no key events when I pressing or releasing the keys aside to the space key. It may be caused by the system of my macOS, or the implementation of detecting the keys. Windows can detect the keys. |
Does AnyDesk work? |
I've tried AnyDesk (mac -> Win, Map 1:1 mode), the keys aside the space also do not send key events. |
But the keys can be detected #5027 (comment) by @kmk-matsui I've already added the code mappings. But I cannot understand why there's still an issue here.
RustDesk uses the position code mapping, the keys' function will not affect the mapping. |
If so, should we continue to spend time on an unsolvable problem? |
not sure if it's unsolvable or anydesk didnt have enough japanese customers needing this (if at all) #5027 (comment) |
tracked by #4367 to mark as low priority, hope Japanese dev can work on this. |
I don't think any commercial company would like give up a big market like Japan. |
It is grabbed by the demo app #5027 (comment) , which is also used by RustDesk. |
I wouldnt say give up, but just that some things may not be seen unless someone asks and it is a bit specific as you need to both be japanese and go mac -> win. |
aside from being weird af, one thing that might need to be checked is how this works in mac to mac connections, I mean if the local mac's rustdesk doesnt even see the Lang1/2 keys in the first place it couldnt send the keys to the remote mac either. |
Similarly, Lang1 and Lang2 were not recognized by chrome remote desktop, so I mapped F11 and F12 to Lang1 and Lang2 in karabiner and assigned the non-conversion and conversion keys to F11 and F12 in the chrome remote desktop keymap. |
If rundesk has a keymap assignment function like chrome remote desktop, it would be possible to support the above. |
We do want to add keymap, though not high priority. |
But the real problem is that Lang1/2 keys are recognized on your computer and then there is something wrong with the mapping. Maybe this issue could also be solved later sometime, not now. |
So this issue has to be left to be solved by an Japanese dev, since we do not have the keyboard and super low efficiency. |
or at the very least a dev/hacker with access to a mac and a japanese apple keyboard. |
Bug Description
The conversion key and non-conversion key on the JIS keyboard are not working.
How to Reproduce
When inputting the English and Japanese keys from a Mac, the non-conversion key and conversion key are recognized on Windows.
Expected Behavior
When keydown the Eisu(英数) key on a Mac, the non-conversion(無変換) key are recognized on Windows.
When keydown the Kana(かな) key on a Mac, the conversion(変換) key are recognized on Windows.
Operating system(s) on local side and remote side
MacOS(Ventura 13.4.1(c)) -> Windows 11
RustDesk Version(s) on local side and remote side
1.2.1 -> 1.2.1
Screenshots
Reference: Wikipedia - Language input keys
Additional Context
No response
The text was updated successfully, but these errors were encountered: