yurikhan / teck

Truly Ergonomic Computer Keyboard firmware hacking
Other
70 stars 20 forks source link

Change keycode of "半角/全角" key on JIS keyboard #1

Closed jnakanojp closed 11 years ago

jnakanojp commented 11 years ago

Differently from USB HID keycode definition, in most JIS keyboards, keycode of "半角/全角" key is configured as "0x35", which is same to "`~" key. Using Keyboard LANG 5 ("半角/全角" key on USB HID keycode list) is not in common.

yurikhan commented 11 years ago

In the current version, there is some HTML and CSS code to have a 半角/全角 key instead of ~</kbd>. I think it’s easier to just remove it so that <kbd>~ is displayed on all keyboards. If the user wants a real 半角/全角 key, he/she can always drag one from the Terminal/Language keys section.

Do you by any chance know if the JIS ]}む key emits a US | code (31h) or an ISO #~ (32h)?

jnakanojp commented 11 years ago

I agree with your opinion. I think removing 半角/全角 is adequate solution.

On general JIS keyboards, ]}む key emits a US | code.

jnakanojp commented 11 years ago

Sorry for my wrong comment. The actual keycode of ]}む in my comment may be wrong.

According to this page, ]}む seems to have keycode 0x32.

But it is different from trulyergonomic's opnion. I'll check and report it.

jnakanojp commented 11 years ago

I've checked the keycode of ]}む on 2 JIS keyboards. One is Apple JIS Keyboard(with tenkey), another one is ELECOM JIS Keyboard for PC(with tenkey). On both keyboards, ]}む emits 0x32. I checked it with tcpdump USB packet dump.

yurikhan commented 11 years ago

@jnakanojp: Thank you. In the next version, I will remove the 半角/全角 key from the JIS layout and just display `~ there, and change the | key to Europe1.