Change mod tap interrupt to per key

This commit is contained in:
2021-06-10 00:01:30 +02:00
parent b117e0d7db
commit 396830e321
2 changed files with 11 additions and 2 deletions

View File

@@ -50,7 +50,7 @@
#define TAPPING_TERM 250
/* Allow quick tapping not to trigger modifier hold */
#define IGNORE_MOD_TAP_INTERRUPT
#define IGNORE_MOD_TAP_INTERRUPT_PER_KEY
/* Releasing key without pressing another will send the original key */
#define RETRO_TAPPING

View File

@@ -35,7 +35,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, \
KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, \
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, \
CTL_T(KC_SPC), LCA_T(KC_ENT), MO(_L1), TD(LT_LEAD), LGUI_T(KC_SPC), KC_RALT \
LCTL_T(KC_SPC), LCA_T(KC_ENT), MO(_L1), TD(LT_LEAD), LGUI_T(KC_SPC), KC_RALT \
),
/*
@@ -243,6 +243,15 @@ void matrix_scan_user(void) {
}
}
bool get_ignore_mod_tap_interrupt(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case LGUI_T(KC_SPC):
return true;
default:
return false;
}
}
uint32_t layer_state_set_user(uint32_t state) {
uint8_t layer = biton32(state);
uint8_t msg[RAW_EPSIZE] = {0};