Open hy2850 opened 2 years ago
I'm not sure I entirely understand your question, however the mods
parameter only supports:
As a result, this: hs.hotkey.new({"escape"}... )
is not valid.
If you want something to trigger if the ESCAPE key is pressed twice, you'd just need to add some logic that detects multiple keypresses within a certain time period using a hs.timer
.
Hello. I would like to create a key mapping for 'esc' button being pushed twice.
I've first tried the below code, but got error that empty string is not allowed for the 'key' argument.
Code
hs.hotkey.new({"escape", "escape"}, "", ...)
Error log
Putting each 'escape' in the
mods
andkey
only maps single, not twice, 'esc' button push.hs.hotkey.new({"escape"}, "escape", ...)
How do I create a keymap that only takes 2 mods?