Need to register global hotkeys. For example, f4 and f8. With keyboard library while first callback didn’t return, the next won’t call. Another words, logs like this But I want to like this Demo code I tried to use asyncio, but nothing changed Update 1 Keyboard library’s developer gave advise to use call_later function that create new thread for each
Tag: keyboard-events
Rules for determining the order of keyboard events? (Python)
I currently have a situation like this: Through trial I’ve found that the on_press_key() events always happen first (and the logic of my program is dependent on it) but I have no idea why, or if it’s a hardware- or OS- specific thing that could be inconsistent and break if used on other systems (?). I’ve tried searching but couldn’t