Skip to content

Commit da34bbb

Browse files
committed
feat(cnano): add scroll toggle combo
1 parent 9a652e2 commit da34bbb

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

users/jeffdess/combos.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const uint16_t PROGMEM tab[] = {KC_BSPC, SYM_SP, COMBO_END};
2222
const uint16_t PROGMEM nav_toggle[] = {NAV_RET, NUM_ESC, COMBO_END};
2323
const uint16_t PROGMEM mouse_lclick[] = {KC_F, KC_P, COMBO_END};
2424
const uint16_t PROGMEM mouse_rclick[] = {KC_Q, KC_W, COMBO_END};
25+
const uint16_t PROGMEM mouse_scroll[] = {KC_W, KC_F, COMBO_END};
2526

2627
combo_t key_combos[] = {[CB_CUT] = COMBO_ACTION(cut),
2728
[CB_COPY] = COMBO_ACTION(copy),
@@ -41,7 +42,11 @@ combo_t key_combos[] = {[CB_CUT] = COMBO_ACTION(cut),
4142
[CB_TAB] = COMBO(tab, KC_TAB),
4243
[CB_NAV_TOGGLE] = COMBO(nav_toggle, TG(_NAV)),
4344
[CB_MS_LCLICK] = COMBO(mouse_lclick, KC_MS_BTN1),
44-
[CB_MS_RCLICK] = COMBO(mouse_rclick, KC_MS_BTN2)};
45+
[CB_MS_RCLICK] = COMBO(mouse_rclick, KC_MS_BTN2),
46+
#ifdef DRG_TOG
47+
[CB_MS_SCROLL] = COMBO(mouse_scroll, DRG_TOG)
48+
#endif
49+
};
4550

4651
void process_combo_event(uint16_t combo_index, bool pressed) {
4752
switch (combo_index) {

users/jeffdess/combos.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@ enum combos {
2525
CB_TAB,
2626
CB_NAV_TOGGLE,
2727
CB_MS_LCLICK,
28-
CB_MS_RCLICK
28+
CB_MS_RCLICK,
29+
CB_MS_SCROLL
2930
};

0 commit comments

Comments
 (0)