diff --git a/keyboards/bastardkb/skeletyl/keymaps/quotengrote/keymap.c b/keyboards/bastardkb/skeletyl/keymaps/quotengrote/keymap.c index 1d44274dff..40052c1e5d 100644 --- a/keyboards/bastardkb/skeletyl/keymaps/quotengrote/keymap.c +++ b/keyboards/bastardkb/skeletyl/keymaps/quotengrote/keymap.c @@ -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; }