You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
`
The text was updated successfully, but these errors were encountered:
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
`
The text was updated successfully, but these errors were encountered: