1
0

Update keycodes

This commit is contained in:
Drashna Jaelre
2018-11-02 10:09:45 -07:00
parent be2c6e70a7
commit 5015c2b4d2
2 changed files with 17 additions and 10 deletions

View File

@@ -453,11 +453,12 @@ enum quantum_keycodes {
TERM_ON,
TERM_OFF,
#endif
UNI_OSX,
UNI_LINUX,
UNI_WIN,
UNI_WINC,
UNI_OSX_RALT,
UNICODE_MODE_OSX,
UNICODE_MODE_LINUX,
UNICODE_MODE_WINDOWS,
UNICODE_MODE_WIN_COMPOSE,
UNICODE_MODE_OSX_RALT,
// always leave at the end
SAFE_RANGE
};
@@ -685,6 +686,12 @@ enum quantum_keycodes {
#define X(n) (QK_UNICODE_MAP | (n))
#endif
#define UC_M_OS UNICODE_MODE_OSX
#define UC_M_LN UNICODE_MODE_LINUX
#define UC_M_WI UNICODE_MODE_WINDOWS
#define UC_M_WC UNICODE_MODE_WINCOMPOSE
#define UC_M_OR UNICODE_MODE_OSX_RALT
#ifdef SWAP_HANDS_ENABLE
#define SH_T(kc) (QK_SWAP_HANDS | (kc))
#define SH_TG (QK_SWAP_HANDS | OP_SH_TOGGLE)