#3305 Map brightness keys correctly on macOS servers

This commit is contained in:
Andrew Nelless 2016-09-16 16:30:49 +01:00
parent 6294679fcd
commit 1b0d4308e2
1 changed files with 5 additions and 1 deletions

View File

@ -35,6 +35,8 @@ static const UInt32 s_superVK = kVK_Command;
static const UInt32 s_capsLockVK = kVK_CapsLock;
static const UInt32 s_numLockVK = kVK_ANSI_KeypadClear; // 71
static const UInt32 s_brightnessUp = 144;
static const UInt32 s_brightnessDown = 145;
static const UInt32 s_missionControlVK = 160;
static const UInt32 s_launchpadVK = 131;
@ -117,7 +119,9 @@ static const KeyEntry s_controlKeys[] = {
{ kKeyCapsLock, s_capsLockVK },
{ kKeyMissionControl, s_missionControlVK },
{ kKeyLaunchpad, s_launchpadVK }
{ kKeyLaunchpad, s_launchpadVK },
{ kKeyBrightnessUp, s_brightnessUp },
{ kKeyBrightnessDown, s_brightnessDown }
};