add sentence case toggle

This commit is contained in:
♥ Minnie ♥ 2023-04-13 12:04:35 +08:00
parent cfbf3da29e
commit f8b5db0f9d
3 changed files with 8 additions and 1 deletions

View file

@ -86,7 +86,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[L_ADJUST] = LAYOUT_split_3x6_3(
//,-----------------------------------------------------. ,-----------------------------------------------------.
QK_BOOT, xQWERTY, xCANARY, XXXXXXX, XXXXXXX, AS_TOGG, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_PWR,
QK_BOOT, xQWERTY, xCANARY, XXXXXXX, XXXXXXX, AS_TOGG, SC_TOGG, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_PWR,
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, XXXXXXX, AC_TOGG, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_SLEP,
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|

View file

@ -43,6 +43,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
}
return false;
case SC_TOGG:
if (record->event.pressed) {
sentence_case_toggle();
}
return false;
/* KEYBOARD PET STATUS START */
case TABCTRL:
case KC_LCTL:

View file

@ -6,6 +6,7 @@
enum custom_keycodes {
CK_LOCK = SAFE_RANGE,
BSPC_DW,
SC_TOGG,
};
// Left-hand thumb key layers