[Chore] Remove stray mod tap interrupt defines and per key functions (#20347)

* Remove stray defines and per key functions

* Remove defunct get_ignore_mod_tap_interrupt declaration
This commit is contained in:
Stefan Kerkmann
2023-04-06 01:04:23 +02:00
committed by GitHub
parent 7115927559
commit 73b376a881
7 changed files with 5 additions and 44 deletions

View File

@@ -39,20 +39,20 @@ enum custom_keycodes {
// Shortcut to make keymap more readable
#define KC_FN MO(_FN)
bool get_ignore_mod_tap_interrupt(uint16_t keycode, keyrecord_t *record) {
bool get_hold_on_other_key_press(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case SC_LSPO:
// Do not force the mod-tap key press to be handled as a modifier
// if any other key was pressed while the mod-tap key is held down.
return false;
return true;
// case MT(MOD_LSFT,KC_9):
// return false;
case SC_RSPC:
return false;
return true;
default:
// Force the mod-tap key press to be handled as a modifier if any
// other key was pressed while the mod-tap key is held down.
return true;
return false;
}
}
@@ -185,4 +185,4 @@ _______ ,_______ ,RALT_T(KC_S),LCTL_T(KC_D),LSFT_T(KC_F),LT(_SYM,KC_G),_______ ,
_______ ,_______ ,_______ ,_______ ,_______ ,_______ , _______ ,_______ ,_______ ,_______ ,_______ ,_______
// └────────┴────────┴──────────┴──────────┴─────────────┴────────┘ └────────┴─────────────┴──────────┴──────────┴────────┴────────┘
),
*/
*/