summaryrefslogtreecommitdiff
path: root/quantum/quantum_keycodes.h
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2022-10-25 22:59:17 +0100
committerGitHub <noreply@github.com>2022-10-25 22:59:17 +0100
commitec2414c0742277488adf83d26451e07d0e0402de (patch)
tree62ea6f59395cc2a2c37b68707aaa452f08969846 /quantum/quantum_keycodes.h
parent812001de7fd0926f59fd399550f902ef4ec03ee6 (diff)
Deprecate `SECURE_*` keycodes for `QK_SECURE_*` (#18847)
* Deprecate SECURE_* keycodes for QK_SECURE_* * Update keycode process * Update process_secure.c * Apply suggestions from code review Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'quantum/quantum_keycodes.h')
-rw-r--r--quantum/quantum_keycodes.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/quantum/quantum_keycodes.h b/quantum/quantum_keycodes.h
index 8689b913ed..c5b9342b17 100644
--- a/quantum/quantum_keycodes.h
+++ b/quantum/quantum_keycodes.h
@@ -598,10 +598,10 @@ enum quantum_keycodes {
QK_MAKE,
QK_REBOOT,
- SECURE_LOCK,
- SECURE_UNLOCK,
- SECURE_TOGGLE,
- SECURE_REQUEST,
+ QK_SECURE_LOCK,
+ QK_SECURE_UNLOCK,
+ QK_SECURE_TOGGLE,
+ QK_SECURE_REQUEST,
QK_CAPS_WORD_TOGGLE,
@@ -857,6 +857,12 @@ enum quantum_keycodes {
#define KO_ON QK_KEY_OVERRIDE_ON
#define KO_OFF QK_KEY_OVERRIDE_OFF
+// Secure
+#define SE_LOCK QK_SECURE_LOCK
+#define SE_UNLK QK_SECURE_UNLOCK
+#define SE_TOGG QK_SECURE_TOGGLE
+#define SE_REQ QK_SECURE_REQUEST
+
// Swap Hands
#define SH_T(kc) (QK_SWAP_HANDS | (kc))
#define SH_TG (QK_SWAP_HANDS | OP_SH_TOGGLE)