boppreh / keyboard

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

Can hotKey support double-clicking key like 'ctrl+ctrl'? #648

Open dcming opened 3 weeks ago

dcming commented 3 weeks ago

I would like to be able to trigger a function by double-clicking the Ctrl or Alt keys, similar to the Listary software. This would be more convenient to use. I'm wondering if the hotKey function can support this: keyboard.add_hotkey('ctrl+ctrl', print, args=('triggered', 'hotkey'), suppress=True)