I am trying to achieve the following scenario in Hammerspoon:
- when I press ctrl + alt + E (and no other key is pressed within 300 ms) => launch Finder
- when I press ctrl + alt + E and then again another E within 300 milliseconds => launch Excel, without launching Finder
How do I achieve this?
I tried several tricks with
hs.hotkey.bind along with boolean flags and
hs.timer, but not got a solution to this yet. Also tried
hs.hotkey.modal, without success.
Any help towards a solution is appreciated. Thanks in advance!