boppreh / keyboard

Hook and simulate global keyboard events on Windows and Linux.
MIT License
3.77k stars 433 forks source link

Don't remove num when canonizing num keys #518

Open Avasam opened 2 years ago

Avasam commented 2 years ago

I have to manually check the is_keypad event when registering a key and save the proper string. And fallback to pyautogui for sending num keys. There's no workaround for hotkeys since the last keyboard even isn't sent in the callback.

Otherwise num keys and non-num keys affect each other. This includes num Home, num PgUp/PgDn, num End, num Del (aka decimal) etc.