aboutsummaryrefslogtreecommitdiff
path: root/qmk/keyboards/sofle_choc/keymaps/custom/quad_tapdance.c
diff options
context:
space:
mode:
Diffstat (limited to 'qmk/keyboards/sofle_choc/keymaps/custom/quad_tapdance.c')
-rw-r--r--qmk/keyboards/sofle_choc/keymaps/custom/quad_tapdance.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/qmk/keyboards/sofle_choc/keymaps/custom/quad_tapdance.c b/qmk/keyboards/sofle_choc/keymaps/custom/quad_tapdance.c
index bd160d2..f0a5dbb 100644
--- a/qmk/keyboards/sofle_choc/keymaps/custom/quad_tapdance.c
+++ b/qmk/keyboards/sofle_choc/keymaps/custom/quad_tapdance.c
@@ -152,7 +152,8 @@ void lshift_finished(tap_dance_state_t *state, void *user_data) {
register_code(KC_LEFT_SHIFT);
break;
case TD_SINGLE_TAP:
- register_code(KC_CAPS_LOCK);
+ if (host_keyboard_led_state().caps_lock)
+ register_code(KC_CAPS_LOCK);
break;
default: break;
}
@@ -164,7 +165,8 @@ void lshift_reset(tap_dance_state_t *state, void *user_data) {
unregister_code(KC_LEFT_SHIFT);
break;
case TD_SINGLE_TAP:
- unregister_code(KC_CAPS_LOCK);
+ if (host_keyboard_led_state().caps_lock)
+ unregister_code(KC_CAPS_LOCK);
break;
default: break;
}