boppreh / keyboard

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

Mac OS Ventura compatibility issue! #585

Open 0xGosu opened 1 year ago

0xGosu commented 1 year ago

It seem on the latest Mac OS Ventura, event.name become None and causing the keyboard library to raise Exception on all keyboard event (except for non-layout key). The exception which got raised is:

TypeError: object of type 'NoneType' has no len()

I'm looking at the source code and may be able to fix this issue soon!

0xGosu commented 1 year ago

Ive submit a PR to fix it here: https://github.com/boppreh/keyboard/pull/587 Tested with a Macbook Air M1 2020 model using latest Mac OS Ventura