aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack & Erez <bulk@ezuk.org>2016-06-20 22:36:36 -0400
committerErez Zukerman <ezuk@madmimi.com>2016-06-20 22:36:36 -0400
commit76076db72545bbb649f11394a12721f61579527f (patch)
treed280cdb046040b3fcf927c47ea268c9280da397a
parentf77df7e35679af46a206f3434785c24dc72c55fb (diff)
downloadfirmware-76076db72545bbb649f11394a12721f61579527f.tar.gz
firmware-76076db72545bbb649f11394a12721f61579527f.tar.bz2
firmware-76076db72545bbb649f11394a12721f61579527f.zip
[Jack & Erez] Fixes Space Cadet right shift
-rw-r--r--quantum/keymap.h2
-rw-r--r--quantum/quantum.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/quantum/keymap.h b/quantum/keymap.h
index 979ab2da1..43efab7f3 100644
--- a/quantum/keymap.h
+++ b/quantum/keymap.h
@@ -154,7 +154,7 @@ enum quantum_keycodes {
KC_LSPO,
// Right shift, close paren
- KC_RSPC,
+ KC_RSPC
};
// Ability to use mods in layouts
diff --git a/quantum/quantum.c b/quantum/quantum.c
index a310608e0..49ac20d61 100644
--- a/quantum/quantum.c
+++ b/quantum/quantum.c
@@ -504,14 +504,14 @@ bool process_record_quantum(keyrecord_t *record) {
case KC_LSPO: {
if (record->event.pressed) {
shift_interrupted[0] = false;
- register_mods(MOD_LSFT);
+ register_mods(MOD_BIT(KC_LSFT));
}
else {
if (!shift_interrupted[0]) {
register_code(LSPO_KEY);
unregister_code(LSPO_KEY);
}
- unregister_mods(MOD_LSFT);
+ unregister_mods(MOD_BIT(KC_LSFT));
}
return false;
break;
@@ -520,14 +520,14 @@ bool process_record_quantum(keyrecord_t *record) {
case KC_RSPC: {
if (record->event.pressed) {
shift_interrupted[1] = false;
- register_mods(MOD_RSFT);
+ register_mods(MOD_BIT(KC_RSFT));
}
else {
if (!shift_interrupted[1]) {
register_code(RSPC_KEY);
unregister_code(RSPC_KEY);
}
- unregister_mods(MOD_RSFT);
+ unregister_mods(MOD_BIT(KC_RSFT));
}
return false;
break;