Skip to content

Commit

Permalink
Better way to only apply increased tapping term to outer column home …
Browse files Browse the repository at this point in the history
…row mods
  • Loading branch information
rhruiz committed Nov 1, 2024
1 parent 742058d commit b4be35e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion users/rhruiz/get_tapping_term.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@

#ifdef HOME_ROW_MODS
uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) {
uint8_t row = record->event.key.row;

switch (keycode) {
case QK_MOD_TAP ... QK_MOD_TAP_MAX:
if (record->event.key.row < MATRIX_ROWS - 1 && (IS_MODT(MOD_LCTL, keycode) || IS_MODT(MOD_LSFT, keycode))) {
if ((row == HOME_ROW_NUMBER_RIGHT || row == HOME_ROW_NUMBER_LEFT) &&
(IS_MODT(MOD_LCTL, keycode) || IS_MODT(MOD_LSFT, keycode))) {
return TAPPING_TERM + 50;
}
}
Expand Down

0 comments on commit b4be35e

Please sign in to comment.