skeletyl: indentation

This commit is contained in:
Michael Grote 2024-03-18 11:46:46 +01:00
parent 6aa32b6b16
commit 6042a642e1

View file

@ -113,50 +113,50 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
};
// https://github.com/qmk/qmk_firmware/blob/master/docs/mod_tap.md#changing-hold-function
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
// "Tap and Hold"
case LT(0,KC_X): // "LT(0,KC_X)" is the keycode that must be mapped
if (!record->tap.count && record->event.pressed) {
tap_code16(LCTL(KC_X)); // Intercept hold function to send Ctrl-X
return false;
}
return true; // Return true for normal processing of tap keycode
case LT(0,KC_C):
if (!record->tap.count && record->event.pressed) {
tap_code16(LCTL(KC_C));
return false;
}
return true;
case LT(0,KC_V):
if (!record->tap.count && record->event.pressed) {
tap_code16(LCTL(KC_V));
return false;
}
return true;
case LT(0,KC_Q):
if (!record->tap.count && record->event.pressed) {
tap_code16(RALT(KC_Q));
return false;
}
return true;
case LT(0,KC_F):
if (!record->tap.count && record->event.pressed) {
tap_code16(RALT(KC_E));
return false;
}
return true;
case LT(0,KC_A):
if (!record->tap.count && record->event.pressed) {
tap_code16(KC_TAB);
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;
switch (keycode) {
// "Tap and Hold"
case LT(0,KC_X): // "LT(0,KC_X)" is the keycode that must be mapped
if (!record->tap.count && record->event.pressed) {
tap_code16(LCTL(KC_X)); // Intercept hold function to send Ctrl-X
return false;
}
return true; // Return true for normal processing of tap keycode
case LT(0,KC_C):
if (!record->tap.count && record->event.pressed) {
tap_code16(LCTL(KC_C));
return false;
}
return true;
case LT(0,KC_V):
if (!record->tap.count && record->event.pressed) {
tap_code16(LCTL(KC_V));
return false;
}
return true;
case LT(0,KC_Q):
if (!record->tap.count && record->event.pressed) {
tap_code16(RALT(KC_Q));
return false;
}
return true;
case LT(0,KC_F):
if (!record->tap.count && record->event.pressed) {
tap_code16(RALT(KC_E));
return false;
}
return true;
case LT(0,KC_A):
if (!record->tap.count && record->event.pressed) {
tap_code16(KC_TAB);
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;
}