You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
More specifically I have a MS ERGO keyboard on a mac and I want to try and use hammerspoon to make some of the special keys work in the top row (the 1,2,3,4,5, calc, home, mail buttons).
My problem is that I dont know how to figure out what thier keycode names would be and if its even possible?
Thanks.
The text was updated successfully, but these errors were encountered:
This will print the keycode of any keyboard key pressed. If pressing the key you'd like to map causes its name to be printed in the console, then you know you can take actions when the key is pressed; the only step remaining is to modify the snippet to test which key is being pressed, instead of always printing its name.
The documentation for hs.eventtap.event:systemKey() might be helpful to you. I suspect that in your particular case of calculator and mail type keys, those keys might use a different USB device descriptor than standard keyboard keys, and so might be unusable for what you want to do. But there's only one way to find out for sure!
More specifically I have a MS ERGO keyboard on a mac and I want to try and use hammerspoon to make some of the special keys work in the top row (the 1,2,3,4,5, calc, home, mail buttons).
My problem is that I dont know how to figure out what thier keycode names would be and if its even possible?
Thanks.
The text was updated successfully, but these errors were encountered: