add sentence case toggle
This commit is contained in:
parent
cfbf3da29e
commit
f8b5db0f9d
|
@ -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,
|
||||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
enum custom_keycodes {
|
||||
CK_LOCK = SAFE_RANGE,
|
||||
BSPC_DW,
|
||||
SC_TOGG,
|
||||
};
|
||||
|
||||
// Left-hand thumb key layers
|
||||
|
|
Loading…
Reference in a new issue