Skip to content

Commit a5c21f3

Browse files
committed
Add combinations for leader key to use quotes and double quotes
1 parent 68fed94 commit a5c21f3

File tree

1 file changed

+15
-0
lines changed
  • keyboards/crkbd/keymaps/victorgalo

1 file changed

+15
-0
lines changed

keyboards/crkbd/keymaps/victorgalo/keymap.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,21 @@ void leader_end_user(void) {
512512
unregister_code(KC_RALT);
513513
}
514514
}
515+
516+
/* single quote + space -> LDR > single quote */
517+
if (leader_sequence_one_key(KC_QUOT)) {
518+
tap_code(KC_QUOT); // Type the single quote
519+
tap_code(KC_SPC); // Type a space after the single quote
520+
}
521+
522+
/* single quote + space -> LDR > backspace */
523+
if (leader_sequence_one_key(KC_BSPC)) {
524+
register_code(KC_LSFT);
525+
tap_code(KC_QUOT); // Type the single quote
526+
unregister_code(KC_LSFT);
527+
tap_code(KC_SPC); // Type a space after the single quote
528+
}
529+
515530
}
516531

517532
bool caps_word_press_user(uint16_t keycode) {

0 commit comments

Comments
 (0)