keyboard icon indicating copy to clipboard operation
keyboard copied to clipboard

Arrow Keys are faux-numpad presses, and this causes problems

Open yo-wotop opened this issue 3 years ago • 4 comments

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)

yo-wotop avatar May 09 '21 17:05 yo-wotop

Also having this issue with forza horizon 4. It is picked up as a numpad input and therefore doesn't work.

Ted-Barrett avatar Jun 11 '21 10:06 Ted-Barrett

I am having this issue with Firefox.

vidiat avatar Aug 28 '21 19:08 vidiat

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.

boppreh avatar Aug 28 '21 19:08 boppreh

Any update on this or if new_core is in a usable state? 😃

tios-dmiles avatar Jun 01 '23 22:06 tios-dmiles