command key can be used instead of ctrl on OS X

This commit is contained in:
jacob1 2014-08-24 00:43:52 -04:00
parent d29c2cb2a5
commit a3d594c603

View File

@ -53,7 +53,11 @@
#define KEY_MOD_MODE KMOD_MODE #define KEY_MOD_MODE KMOD_MODE
#define KEY_MOD_RESERVED KMOD_RESERVED #define KEY_MOD_RESERVED KMOD_RESERVED
#ifdef MACOSX
#define KEY_MOD_CONTROL (KEY_MOD_RCONTROL | KEY_MOD_LCONTROL | KEY_MOD_LMETA | KEY_MOD_RMETA)
#else
#define KEY_MOD_CONTROL (KEY_MOD_RCONTROL | KEY_MOD_LCONTROL) #define KEY_MOD_CONTROL (KEY_MOD_RCONTROL | KEY_MOD_LCONTROL)
#endif
#define KEY_MOD_ALT (KEY_MOD_RALT | KEY_MOD_LALT) #define KEY_MOD_ALT (KEY_MOD_RALT | KEY_MOD_LALT)
#define KEY_MOD_SHIFT (KEY_MOD_RSHIFT | KEY_MOD_LSHIFT) #define KEY_MOD_SHIFT (KEY_MOD_RSHIFT | KEY_MOD_LSHIFT)