Create a keyboard event using a raw key code
If mods is given, the event carries exactly those modifiers, whatever modifier keys are held when it's created.
mods
A numeric virtual key code
true for key down, false for key up
Optional
An array of modifier names (e.g. ["cmd", "shift"]), as accepted by hs.eventtap.keyStroke().
hs.eventtap.keyStroke()
An HSEventTapEvent
Create a keyboard event using a raw key code
If
modsis given, the event carries exactly those modifiers, whatever modifier keys are held when it's created.