From 8f9991163603abc292add46e3ea4489ca1d804f2 Mon Sep 17 00:00:00 2001 From: "Jerry (Xinyu Hou)" Date: Wed, 15 Jun 2016 11:08:08 +0100 Subject: [PATCH] #3305 Added mission control and launchpad support --- src/lib/platform/OSXKeyState.cpp | 8 +++++++- src/lib/synergy/key_types.h | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/lib/platform/OSXKeyState.cpp b/src/lib/platform/OSXKeyState.cpp index 03d5d54e..cf95fc92 100644 --- a/src/lib/platform/OSXKeyState.cpp +++ b/src/lib/platform/OSXKeyState.cpp @@ -35,6 +35,9 @@ 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_missionControlVK = 160; +static const UInt32 s_launchpadVK = 131; + static const UInt32 s_osxNumLock = 1 << 16; struct KeyEntry { @@ -111,7 +114,10 @@ static const KeyEntry s_controlKeys[] = { // toggle modifiers { kKeyNumLock, s_numLockVK }, - { kKeyCapsLock, s_capsLockVK } + { kKeyCapsLock, s_capsLockVK }, + + { kKeyMissionControl, s_missionControlVK }, + { kKeyLaunchpad, s_launchpadVK } }; diff --git a/src/lib/synergy/key_types.h b/src/lib/synergy/key_types.h index b02d80e0..eccfb086 100644 --- a/src/lib/synergy/key_types.h +++ b/src/lib/synergy/key_types.h @@ -282,8 +282,8 @@ static const KeyID kKeyAppUser1 = 0xE0B6; static const KeyID kKeyAppUser2 = 0xE0B7; static const KeyID kKeyBrightnessDown = 0xE0B8; static const KeyID kKeyBrightnessUp = 0xE0B9; -static const KeyID kKeyExposeDesktop = 0xE0C0; -static const KeyID kKeyExposeApp = 0xE0C1; +static const KeyID kKeyMissionControl = 0xE0C0; +static const KeyID kKeyLaunchpad = 0xE0C1; //@}