skeletyl: fix w + lgui

This commit is contained in:
Michael Grote 2024-03-15 15:37:04 +01:00
parent e1c72266c0
commit 043eb0e25a

View file

@ -4,7 +4,7 @@
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// Buchstaben
[0] = LAYOUT_split_3x5_3(
LT(0,KC_Q), LGUI(KC_W), LT(0,KC_F), KC_P, KC_B, KC_J, KC_L, KC_U, DE_Z, KC_BSPC,
LT(0,KC_Q), LT(0,KC_W), LT(0,KC_F), KC_P, KC_B, KC_J, KC_L, KC_U, DE_Z, KC_BSPC,
LT(0,KC_A), LALT_T(KC_R), LCTL_T(KC_S), LSFT_T(KC_T), KC_G, KC_M, LSFT_T(KC_N), LCTL_T(KC_E), LALT_T(KC_I), KC_O,
DE_Y, LT(0,KC_X), LT(0,KC_C), LSFT_T(KC_D), LT(0,KC_V), KC_K, LSFT_T(KC_H), DE_COMM, DE_DOT, DE_MINS,
XXXXXXX, LT(3, KC_DEL), LT(2, KC_ENT), LT(1, KC_SPC), OSL(3), XXXXXXX
@ -78,6 +78,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return false;
}
return true;
case LT(0,KC_W):
if (!record->tap.count && record->event.pressed) {
tap_code16(KC_LGUI);
return false;
}
return true;
}
return true;
}