suppress=True will cause a 1-second delay when pressing Ctrl, ALT, and other keys separately, such as running the ALT key in games
suppress=True will cause a 1-second delay when pressing Ctrl, ALT, and other keys separately, such as running the ALT key in games`````how to do?
I have the same problem.
The key shift I detected was a delay in the original shift key function.
Do you know who can help us?
keyboard.add_hotkey('shift+tab', alt_handler, suppress=True, timeout=0.01, trigger_on_release=False)
detail:
When I ran the following code, shift+tabThis combination of Hotkeys is registered.
import keyboard
def alt_handler():
print("Hotkey triggered!")
keyboard.add_hotkey('shift+tab', alt_handler, suppress=True, timeout=0.01, trigger_on_release=False)
keyboard.wait('esc')
I'll press the shift button alone, but there's a delay in the original function of this shift key from Windows.
This late performance can be seen in text selection using the Shift key.
I have the same problem. The key
shiftI detected was a delay in the original shift key function. Do you know who can help us?keyboard.add_hotkey('shift+a', alt_handler, suppress=True, trigger_on_release=True)
I'm reading this website. He's got something about suppression. Support for key suppression
Are there any solution for this issue?