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
This commit is contained in:
committed by
Florian Didron
parent
4cc72c55e5
commit
f5980a2478
@@ -60,18 +60,18 @@
|
|||||||
|
|
||||||
// Control / paren setup
|
// Control / paren setup
|
||||||
#ifndef LCPO_KEYS
|
#ifndef LCPO_KEYS
|
||||||
#define LCPO_KEYS KC_LCTL, KC_LCTL, KC_9
|
#define LCPO_KEYS KC_LCTL, KC_LSFT, KC_9
|
||||||
#endif
|
#endif
|
||||||
#ifndef RCPC_KEYS
|
#ifndef RCPC_KEYS
|
||||||
#define RCPC_KEYS KC_RCTL, KC_RCTL, KC_0
|
#define RCPC_KEYS KC_RCTL, KC_RSFT, KC_0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Alt / paren setup
|
// Alt / paren setup
|
||||||
#ifndef LAPO_KEYS
|
#ifndef LAPO_KEYS
|
||||||
#define LAPO_KEYS KC_LALT, KC_LALT, KC_9
|
#define LAPO_KEYS KC_LALT, KC_LSFT, KC_9
|
||||||
#endif
|
#endif
|
||||||
#ifndef RAPC_KEYS
|
#ifndef RAPC_KEYS
|
||||||
#define RAPC_KEYS KC_RALT, KC_RALT, KC_0
|
#define RAPC_KEYS KC_RALT, KC_RSFT, KC_0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Shift / Enter setup
|
// Shift / Enter setup
|
||||||
@@ -143,7 +143,9 @@ bool process_space_cadet(uint16_t keycode, keyrecord_t *record) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
|
if (record->event.pressed) {
|
||||||
sc_last = 0;
|
sc_last = 0;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user