Skip to content
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

Keyboard Layout #62

Open
Gulli03 opened this issue Jun 13, 2022 · 5 comments
Open

Keyboard Layout #62

Gulli03 opened this issue Jun 13, 2022 · 5 comments
Assignees

Comments

@Gulli03
Copy link

Gulli03 commented Jun 13, 2022

I have an issue where I press two different keys on my keyboard, but they get recognized as the same, probably because this program uses the standard qwerty layout.

@RoanH
Copy link
Owner

RoanH commented Jun 13, 2022

Interesting, sounds like that might be related to #35. It's interesting that distinct keys are detected as the same key though, but most likely this is a problem with the library I use to handle the key events jnativehook. Either way, before I can look into this I need some steps to reproduce the issue, but it is likely that this issue is out of my control.

@RoanH RoanH self-assigned this Jun 13, 2022
@RoanH RoanH added the bug label Jun 13, 2022
@Gulli03
Copy link
Author

Gulli03 commented Jun 13, 2022

So my Keyboard layout is Qwertz (German) and for example Alt Gr is recognized as the normal Alt, and the # key is the same as divide on the numpad. In general most keys on the numpad are recognized as some other key on the rest of the keyboard, but I think that is because they are mostly duplicates.

@RoanH
Copy link
Owner

RoanH commented Jun 13, 2022

Ah, like that, so those are mostly essentially the same key with more than one location on the keyboard. I'm not sure if the location information is something I have access to but I think it might be so I'll have a look.

@RoanH RoanH added enhancement and removed bug labels Jun 13, 2022
@Gulli03
Copy link
Author

Gulli03 commented Jun 13, 2022

But they do different things, have different function, write different characters. How could they be the same key?

@RoanH
Copy link
Owner

RoanH commented Jun 13, 2022

At least in the case of Alt that is actually the same key (key code wise at least). As far as I'm aware all numpad keys are also just reusing key codes of other existing keys. The fact that they now map to different characters is most likely due to a difference in keyboard layout (on qwerty they all share the keycode of their normal key). But fixing keyboard layout related issues is probably outside of my control. However, if I have access to the key location information (I think I do) then I should be able to fix that they are detected as the same physical key. And then you could simply edit the display name of the added key if it's wrong (since Java does properly support different keyboard layouts).

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

No branches or pull requests

2 participants