diff options
author | Daniel Shields <dshields@bats.com> | 2017-12-08 14:33:24 +0000 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2018-02-02 00:59:44 -0500 |
commit | 4a04c7265e74afc8a83a19942af5e9483aac287d (patch) | |
tree | 2960a051327989b31b6e7f428b82e2995e38f48b /keyboards/planck/keymaps/dshields/config.h | |
parent | 9584db055b73937dfba7b9878a8b61af6aa96710 (diff) | |
download | qmk_firmware-4a04c7265e74afc8a83a19942af5e9483aac287d.tar.gz qmk_firmware-4a04c7265e74afc8a83a19942af5e9483aac287d.zip |
Replace custom tap dance keys with mod tap keys in planck/keymaps/dshields
Diffstat (limited to 'keyboards/planck/keymaps/dshields/config.h')
-rw-r--r-- | keyboards/planck/keymaps/dshields/config.h | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/keyboards/planck/keymaps/dshields/config.h b/keyboards/planck/keymaps/dshields/config.h index d920d1539e..438e007d02 100644 --- a/keyboards/planck/keymaps/dshields/config.h +++ b/keyboards/planck/keymaps/dshields/config.h @@ -5,6 +5,7 @@ #define _______ KC_TRNS #define XXXXXXX KC_NO +#define PREVENT_STUCK_MODIFIERS #define USB_MAX_POWER_CONSUMPTION 100 #define ONESHOT_TAP_TOGGLE 2 @@ -31,24 +32,8 @@ #define OSM_ALT OSM(MOD_LALT) #define OSM_SFT OSM(MOD_LSFT) -// tap dance keys -#define TD_SCLN TD(TDK_SCLN) -#define TD_COMM TD(TDK_COMM) -#define TD_DOT TD(TDK_DOT) -#define TD_SLSH TD(TDK_SLSH) - -// macros -#define ACTION_TAP_DANCE_FN_KEYCODE(user_fn, kc) { \ - .fn = { NULL, user_fn, NULL }, \ - .user_data = (void *)&((qk_tap_dance_pair_t) { kc, 0 }) \ -} - -#define ACTION_TAP_DANCE_FN_KEYCODE2(user_fn, kc1, kc2) { \ - .fn = { NULL, user_fn, NULL }, \ - .user_data = (void *)&((qk_tap_dance_pair_t) { kc1, kc2 }) \ -} - -#define TAP(keycode) register_code16(keycode); unregister_code16(keycode) +// mod-tap keys +#define MT_SPC SFT_T(KC_SPC) #endif |