keyboard
keyboard copied to clipboard
keyboard.suppress blocks keyboard.is_pressing
When you hook a function with suppress=True, and the function is using keyboard.is_pressing() with any value, it returns false. This is what I mean: ` import keyboard
def keys(event): if event.event_type == keyboard.KEY_DOWN: if keyboard.is_pressed('a'): print('You are pressing A') else: print('You are not pressing A')
keyboard.hook(keys, suppress=True)
while True: continue `