#3305 Added mission control and launchpad support
This commit is contained in:
parent
1f78fe6f6d
commit
8f99911636
|
@ -35,6 +35,9 @@ static const UInt32 s_superVK = kVK_Command;
|
||||||
static const UInt32 s_capsLockVK = kVK_CapsLock;
|
static const UInt32 s_capsLockVK = kVK_CapsLock;
|
||||||
static const UInt32 s_numLockVK = kVK_ANSI_KeypadClear; // 71
|
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;
|
static const UInt32 s_osxNumLock = 1 << 16;
|
||||||
|
|
||||||
struct KeyEntry {
|
struct KeyEntry {
|
||||||
|
@ -111,7 +114,10 @@ static const KeyEntry s_controlKeys[] = {
|
||||||
|
|
||||||
// toggle modifiers
|
// toggle modifiers
|
||||||
{ kKeyNumLock, s_numLockVK },
|
{ kKeyNumLock, s_numLockVK },
|
||||||
{ kKeyCapsLock, s_capsLockVK }
|
{ kKeyCapsLock, s_capsLockVK },
|
||||||
|
|
||||||
|
{ kKeyMissionControl, s_missionControlVK },
|
||||||
|
{ kKeyLaunchpad, s_launchpadVK }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -282,8 +282,8 @@ static const KeyID kKeyAppUser1 = 0xE0B6;
|
||||||
static const KeyID kKeyAppUser2 = 0xE0B7;
|
static const KeyID kKeyAppUser2 = 0xE0B7;
|
||||||
static const KeyID kKeyBrightnessDown = 0xE0B8;
|
static const KeyID kKeyBrightnessDown = 0xE0B8;
|
||||||
static const KeyID kKeyBrightnessUp = 0xE0B9;
|
static const KeyID kKeyBrightnessUp = 0xE0B9;
|
||||||
static const KeyID kKeyExposeDesktop = 0xE0C0;
|
static const KeyID kKeyMissionControl = 0xE0C0;
|
||||||
static const KeyID kKeyExposeApp = 0xE0C1;
|
static const KeyID kKeyLaunchpad = 0xE0C1;
|
||||||
|
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue