forked from mirror/qmk_firmware
Update keycodes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user