add mod tap shift on enter

This commit is contained in:
♥ Minnie ♥ 2024-02-08 22:48:13 +08:00
parent e9f5ca9151
commit 020b346b03
2 changed files with 5 additions and 3 deletions

View file

@ -33,7 +33,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
OS_LSFT, KC_Q, KC_J, KC_V, KC_D, KC_K, KC_X, KC_H, KC_SLSH, KC_COMM, KC_DOT, OS_RSFT, OS_LSFT, KC_Q, KC_J, KC_V, KC_D, KC_K, KC_X, KC_H, KC_SLSH, KC_COMM, KC_DOT, OS_RSFT,
//|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------| //|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------|
OS_LGUI, BAK_LWR, SPACEFN, ENTERFN, DEL_RSE, OS_RALT OS_LGUI, BAK_LWR, SPACEFN, ENT_SFT, DEL_RSE, OS_RALT
//`--------------------------' `--------------------------' //`--------------------------' `--------------------------'
), ),

View file

@ -11,10 +11,12 @@ enum custom_keycodes {
SC_TOGG, SC_TOGG,
}; };
// Dual role keys /* Dual role keys */
#define SPACEFN LT(L_EXTEND, KC_SPC) #define SPACEFN LT(L_EXTEND, KC_SPC)
#define ENTERFN LT(L_MACRO, KC_ENT) // mod-tap
#define TABCTRL MT(MOD_LCTL, KC_TAB) #define TABCTRL MT(MOD_LCTL, KC_TAB)
#define ENT_SFT MT(MOD_RSFT, KC_ENT)
// layer-tap
#define BAK_LWR LT(L_LOWER, KC_BSPC) #define BAK_LWR LT(L_LOWER, KC_BSPC)
#define DEL_RSE LT(L_RAISE, KC_DEL) #define DEL_RSE LT(L_RAISE, KC_DEL)