commit 2fca34c71bde9606eff202aacf780cf43ec1690e
parent c8ec8c80ad72dbbdb2ae88ec7acebb7dda44b2a6
Author: Jack Sangdahl <jack@pngu.org>
Date: Sun, 14 Dec 2025 19:04:43 -0700
Fix repeat key on layer tap and fix combos
Diffstat:
2 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/keyboards/sweep/keyboard.json b/keyboards/sweep/keyboard.json
@@ -7,9 +7,8 @@
},
"bootloader": "rp2040",
"features": {
- "backlight": true,
- "bootmagic": true,
- "quantum_painter": true,
+ "backlight": false,
+ "quantum_painter": false,
"rgb_matrix": true
},
"matrix_pins": {
diff --git a/users/jack/jack.c b/users/jack/jack.c
@@ -73,8 +73,8 @@ tap_dance_action_t tap_dance_actions[] = {
#endif
#ifdef COMBO_ENABLE
-const uint16_t PROGMEM enter_combo[] = {KC_J, KC_K, COMBO_END};
-const uint16_t PROGMEM caps_combo[] = {KC_D, KC_F, COMBO_END};
+const uint16_t PROGMEM enter_combo[] = {RSFT_T(KC_J), RCTL_T(KC_K), COMBO_END};
+const uint16_t PROGMEM caps_combo[] = {LCTL_T(KC_D), LSFT_T(KC_F), COMBO_END};
combo_t key_combos[] = {
COMBO(enter_combo, KC_ENT),
@@ -82,6 +82,13 @@ combo_t key_combos[] = {
};
#endif
+bool remember_last_key_user(uint16_t keycode, keyrecord_t *record,
+ uint8_t *remembered_mods) {
+ if (keycode == REP_L2)
+ return false;
+ return true;
+}
+
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
if (!process_record_keymap(keycode, record))
return false;
@@ -113,7 +120,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
SEND_STRING("jack@pngu.org");
break;
case REP_L2:
- if (!record->tap.count) {
+ if (record->tap.count) {
repeat_key_invoke(&record->event);
return false;
}