-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Side Specific Binding Limitation #1
Comments
Hey, sorry for the delay in reply. Yeah, for some reason the normal hotkey method doesn't work for mapping hotkeys to a modified version of that same key, but you can work around it by using an eventtap:
The And if you wanted to require that 2 of modifier keys are pressed, you could
The And for when you don't care that it is a side-specific hotkey, you could do something like this, which will get trigger by cmd+a (either cmd) and doesn't depend on the
Let me know if this solves the issue for you. Also, thanks for pointing this out. I've added a note about this to the README and comment in the code in case others come across this same issue. |
Thanks for the detailed write up! It still boggles my mind what hammerspoon can do. Your code works for me with the caveat that the new key-stroke isn't performed until one of the modifiers is released. |
Strange. For me, it fires the new keystroke on the key down event. There might be a way to fix this for your setup, but I'm not sure how, and since I'm not experiencing that issue, it's hard for me to debug it. But I'll leave this issue open and maybe someone else will be able to suggest a solution. |
I tried removing everything except this from my config and still got the same behavior, so I don't think it's a conflict with my config. Thanks for taking a look. |
Darn, ok. |
I can confirm that it is the same behaviour with me. Though, for 'ctrl + a' it is not performed until one of the modifier is released, 'shift+left' is performed immediately. |
Hey! Using (and loving) your side-specific code to help my finger pain. It seems I've run up against a limit, and am wondering if there's a workaround, or if it's unavoidable.
I can't remap a key + modifier to the same key with another modifier. So this doesn't work:
The text was updated successfully, but these errors were encountered: