keyboard
keyboard copied to clipboard
Arrow Keys are faux-numpad presses, and this causes problems
In certain applications which ignore numlock, pressing '6' on the numpad (for example) will always register a '6' regardless of whether you have numlock on or not.
These same applications will respect the arrow keys if explicitly pressed (i.e., via the arrows and not the number pad).
However, using keyboard.press_and_release('right')
will cause a numpad6 press in these applications, as opposed to the expected arrow key.
An example application is GuildWars2, but I have also encountered it in non-games which slip my mind at the moment.
This is not the only problem, however. I believe that the three following related issues would all be addressed if this were fixed:
https://github.com/boppreh/keyboard/issues/161
https://github.com/boppreh/keyboard/issues/288
https://github.com/boppreh/keyboard/issues/277#issuecomment-544748587 (specific related comment)
Also having this issue with forza horizon 4. It is picked up as a numpad input and therefore doesn't work.
I am having this issue with Firefox.
Thanks for the bug report.
This will be my number one priority as soon as I finish with the most pressing hotkey bugs (https://github.com/boppreh/keyboard/tree/new_core), which is 95% done.
Any update on this or if new_core is in a usable state? 😃