aboutsummaryrefslogtreecommitdiff
path: root/quantum/process_keycode/process_space_cadet.c
diff options
context:
space:
mode:
authorXScorpion2 <rcalt2vt@gmail.com>2019-05-12 00:20:14 -0500
committerDrashna Jaelre <drashna@live.com>2019-05-11 22:20:14 -0700
commitc6184d2e7ed9695c22635431394e501b1d5e6271 (patch)
treea720b2371ea7e913c77cfc523088ed5a7a15db4c /quantum/process_keycode/process_space_cadet.c
parentec302295b695e43c5967a6f806c4b4505c651e13 (diff)
downloadqmk_firmware-c6184d2e7ed9695c22635431394e501b1d5e6271.tar.gz
qmk_firmware-c6184d2e7ed9695c22635431394e501b1d5e6271.zip
Added check for event pressed to clear space cadet (#5839)
* Added check for pressed to clear space cadet * Found some docs to update * Update docs/quantum_keycodes.md Co-Authored-By: fauxpark <fauxpark@gmail.com> * Changes from PR
Diffstat (limited to 'quantum/process_keycode/process_space_cadet.c')
-rw-r--r--quantum/process_keycode/process_space_cadet.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/quantum/process_keycode/process_space_cadet.c b/quantum/process_keycode/process_space_cadet.c
index ac39df808..089199eee 100644
--- a/quantum/process_keycode/process_space_cadet.c
+++ b/quantum/process_keycode/process_space_cadet.c
@@ -60,18 +60,18 @@
60 60
61// Control / paren setup 61// Control / paren setup
62#ifndef LCPO_KEYS 62#ifndef LCPO_KEYS
63 #define LCPO_KEYS KC_LCTL, KC_LCTL, KC_9 63 #define LCPO_KEYS KC_LCTL, KC_LSFT, KC_9
64#endif 64#endif
65#ifndef RCPC_KEYS 65#ifndef RCPC_KEYS
66 #define RCPC_KEYS KC_RCTL, KC_RCTL, KC_0 66 #define RCPC_KEYS KC_RCTL, KC_RSFT, KC_0
67#endif 67#endif
68 68
69// Alt / paren setup 69// Alt / paren setup
70#ifndef LAPO_KEYS 70#ifndef LAPO_KEYS
71 #define LAPO_KEYS KC_LALT, KC_LALT, KC_9 71 #define LAPO_KEYS KC_LALT, KC_LSFT, KC_9
72#endif 72#endif
73#ifndef RAPC_KEYS 73#ifndef RAPC_KEYS
74 #define RAPC_KEYS KC_RALT, KC_RALT, KC_0 74 #define RAPC_KEYS KC_RALT, KC_RSFT, KC_0
75#endif 75#endif
76 76
77// Shift / Enter setup 77// Shift / Enter setup
@@ -143,7 +143,9 @@ bool process_space_cadet(uint16_t keycode, keyrecord_t *record) {
143 return false; 143 return false;
144 } 144 }
145 default: { 145 default: {
146 sc_last = 0; 146 if (record->event.pressed) {
147 sc_last = 0;
148 }
147 break; 149 break;
148 } 150 }
149 } 151 }