keyboard icon indicating copy to clipboard operation
keyboard copied to clipboard

keyboard.suppress blocks keyboard.is_pressing

Open S0meM opened this issue 1 year ago • 0 comments

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 `

S0meM avatar Jan 31 '24 23:01 S0meM