Skip to content

Commit

Permalink
feat: Introduce BACKSPACE + P combo for DELETE
Browse files Browse the repository at this point in the history
  • Loading branch information
Soryyyn committed Jan 6, 2024
1 parent 94d5517 commit 7576cbe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
6 changes: 5 additions & 1 deletion keyboards/planck/rev7/keymaps/soryn/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,8 @@

//
// Set "permissive hold" mode on
#define PERMISSIVE_HOLD true
#define PERMISSIVE_HOLD true

//
// Enable combos (pressing 2 keys at the same time -> key)
#define COMBO_ENABLE true
9 changes: 9 additions & 0 deletions keyboards/planck/rev7/keymaps/soryn/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ enum layers {
#define SP_0SYM LT(_SYMBOLS, KC_0) // Symbol layer on hold / 0 on press.
#define SP_HYES MT(MOD_HYPR, KC_ESC) // Hyper on escape hold / normal escape on press (Hyper = CTRL & Shift & Alt & GUI)

//
// Combos
const uint16_t PROGMEM delete_combo[] = {KC_P, KC_BSPC, COMBO_END};
combo_t key_combos[] = {
//
// Send `DELETE` when `BACKSPACE` & `P`.
COMBO(delete_combo, KC_DEL),
};

/* clang-format off */
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

Expand Down

0 comments on commit 7576cbe

Please sign in to comment.