boppreh / keyboard

Hook and simulate global keyboard events on Windows and Linux.
MIT License
3.76k stars 433 forks source link

add_hotkey not working for hotkey like 'key1, key2' #591

Open happyTonakai opened 1 year ago

happyTonakai commented 1 year ago
keyboard.add_hotkey('ctrl, s', lambda: print('ctrl, s pressed'))
keyboard.wait()

I press ctrl, release, press s and release but nothing happens. Win10 Pro 21H1 19043.2364, Python 3.10.8, keyboard 0.13.5 and the latest from master branch, both of these two versions are not working.