boppreh / keyboard

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

Key name '~' in not mapped to any known key #632

Open KBOPYM opened 5 months ago

KBOPYM commented 5 months ago

Windows10, python 3.12.1

It works fine if using EN keyboard and gives an error in RU. For RU it works for '`', but then it gives an error in EN keyboard...

For some reason it only failes on the first time keyboard.is_pressed('~') is checked, works fine no matter what after that.

Looks like it is somehow connected to issue #56