kwhat / jnativehook

Global keyboard and mouse listeners for Java.
Other
1.73k stars 344 forks source link

Numpad keys #438

Open karl-police opened 1 year ago

karl-police commented 1 year ago

These keys, 0xe4a and 0xe4e

are not defined

ZippySqrl commented 1 year ago

The numpad * key also appears to be identical to the PrintScreen key, Code 3639. Why are all the keycodes in JNativeHook different from keycodes in java.awt.event.KeyEvent?

The Right-Alt key appears to activate two keys Ctrl (29) and Alt (56) rather than being its own key, and Right-Shift is also undefined 0xe36 (3638), ideally Right-Alt, Right-Ctrl and Right-Shift should be their own keycodes, as with Numpad-Enter being separate from Regular Enter/Return

jon-mil-92 commented 1 year ago

I came here to post an issue about the right shift being undefined. I'm writing a java application that depends on JNativeHook to use hotkeys for changing desktop display modes and display scaling, and these issues are a problem.