Skip to content

Commit

Permalink
Add mod tap intercepts for new symbol layer home keys
Browse files Browse the repository at this point in the history
  • Loading branch information
epahl-atlassian committed Jan 18, 2022
1 parent addee50 commit 1900f5e
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions users/halcyoncorsair/process_records.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
break;
#endif

#ifdef ENABLE_SYMBOL_LAYER_ORIGINAL
// symbol mod taps
case LALT_T(KC_PIPE):
if (record->tap.count) {
Expand Down Expand Up @@ -99,6 +100,58 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return false; // Return false to ignore further processing of key
}
break;
#else
// symbol mod taps
case LCTL_T(KC_DLR):
if (record->tap.count) {
tap_code16(KC_DLR);
return false;
}
break;
case LALT_T(KC_PLUS):
if (record->tap.count) {
tap_code16(KC_PLUS);
return false;
}
break;
case LGUI_T(KC_LPRN):
if (record->tap.count) {
tap_code16(KC_LPRN);
return false;
}
break;
case LSFT_T(KC_RPRN):
if (record->tap.count) {
tap_code16(KC_RPRN);
return false;
}
break;

// case RSFT_T(KC_MINS):
// if (record->tap.count) {
// tap_code16(KC_MINS);
// return false;
// }
// break;
// case RGUI_T(KC_EQL):
// if (record->tap.count) {
// tap_code16(KC_EQL);
// return false;
// }
// break;
case LALT_T(KC_UNDS):
if (record->tap.count) {
tap_code16(KC_UNDS);
return false;
}
break;
case RCTL_T(KC_ASTR):
if (record->tap.count) {
tap_code16(KC_ASTR);
return false;
}
break;
#endif
}
}
return true;
Expand Down

0 comments on commit 1900f5e

Please sign in to comment.