Acidham Posted November 17, 2019 Share Posted November 17, 2019 Im planning to extend my Workflow Browse Alfred Workflows by listing used Keyboard Shortcuts. Alfred stores this information in info.plist as {'config': {'action': 0, 'argument': 0, 'focusedappvariable': False, 'focusedappvariablename': '', 'hotkey': 12, 'hotmod': 1835008, 'hotstring': 'Q', 'leftcursor': False, 'modsmode': 0, ...}, 'type': 'alfred.workflow.tri...er.hotkey', 'uid': 'D0088C5C-4454-4EEE-...4B422BD79', 'version': 2} but I am not able to get a valid mapping rule, e.g. Hotkey 12 = CMD. And I am not sure what Hotmod means. Is there a reference or docu somewhere on how to map? Link to comment
deanishe Posted November 17, 2019 Share Posted November 17, 2019 They're macOS API constants. Hotkey is the code sent by a physical key, e.g. 12 is the key code sent by the key Q is on (on a QWERTY keyboard). I'm pretty sure hotmod is a combination of CGEventFlags. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now