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

Feature request: Apple key codes #33

Open
punkpc opened this issue Apr 27, 2017 · 3 comments
Open

Feature request: Apple key codes #33

punkpc opened this issue Apr 27, 2017 · 3 comments

Comments

@punkpc
Copy link

punkpc commented Apr 27, 2017

Requesting Apple OSX specific key codes.

Like listed here...
http://eastmanreference.com/complete-list-of-applescript-key-codes/

A lot of the Windows commands work with Mac, but there are a few that are OSX specific.
Like the Mac function keys.

Brightness down (Monitor/Screen)

Brightness up (Monitor/Screen)

Mission Control

Launchpad

Media Eject

Thanks

@dhowland
Copy link
Owner

EasyAVR implements a USB HID keyboard, which sends scancodes based on HID code page 7. As far as I know, it implements all keys from that page that are used in both Windows and Mac. If there are HID codes that should be supported but aren't, let me know which ones specifically. The link you provided doesn't reference any USB HID scancodes.

@punkpc
Copy link
Author

punkpc commented Apr 27, 2017

Oh ok. I will see if I can find the scancodes for those commands.

@bmmcwhirt
Copy link

Brightness is already implemented as SCANCODE_BRIGHT_DEC and SCANCODE_BRIGHT_INC. Or most Macs will be configured to do this on F14 and F15 which can be accessed with HID_KEYBOARD_SC_F14 and HID_KEYBOARD_SC_F15.

Eject I am not sure about

Mission Control and Launchpad are shortcuts.
Mission control by default in Sierra is CTRL UP_ARROW and CTRL DOWN_ARROW to exit. Likewise CTRL LEFT_ARROW and CTRL RIGHT_ARROW move left and right a space respectively.

On my machine Launchpad is not mapped to anything.

These are all in Preferences in Keyboard on the Shortcuts tab.

Hopefully this helps, if you have further issues replay and I will try to help.

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

No branches or pull requests

3 participants