Skip to content
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

Modifier key's single tapping problems. #3594

Open
hjlee-repo opened this issue Jan 29, 2024 · 0 comments
Open

Modifier key's single tapping problems. #3594

hjlee-repo opened this issue Jan 29, 2024 · 0 comments

Comments

@hjlee-repo
Copy link

I looked into the Hammerspoon API and several scripts,
it seems that combinations of modifier keys (Ctrl, Shift, Cmd...) and
regular keys (h,j,k,l..etc) work well, but modifier keys by themselves cannot distinguish single tapping.
Strangely, the modifier key can only recognize events with 'flagsChanged',
and in this case, I can recognize which modifier key was pressed in the Down event, but cannot recognize which mod key was released in the Up event.
Furthermore, the result of the getType() function is 12 for both up and down, whereas I can recognize 10 (down) and 11 (up) for regular keys.
I wonder if this is intended or a bug. Are you any plans to fix it in a future version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant