From 1b0d4308e26f419a05164b46220e1b8987742853 Mon Sep 17 00:00:00 2001 From: Andrew Nelless Date: Fri, 16 Sep 2016 16:30:49 +0100 Subject: [PATCH] #3305 Map brightness keys correctly on macOS servers --- src/lib/platform/OSXKeyState.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/platform/OSXKeyState.cpp b/src/lib/platform/OSXKeyState.cpp index ab96282b..69a689c6 100644 --- a/src/lib/platform/OSXKeyState.cpp +++ b/src/lib/platform/OSXKeyState.cpp @@ -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 } };