aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/planck/keymaps/khord/keymap.c
diff options
context:
space:
mode:
authorGravatar Dylan Khor <khord@simspace.com>2017-03-16 12:44:56 -0400
committerGravatar Dylan Khor <khord@simspace.com>2017-03-16 12:44:56 -0400
commit0c8f71e3c7fe258e6e084d7eec018b89a499d014 (patch)
tree3f1255aff1c417e6cbd43b9201ed17b5f9c164ed /keyboards/planck/keymaps/khord/keymap.c
parent24d174595120aa6874604eed41db7ae02b26c9be (diff)
downloadqmk_firmware-0c8f71e3c7fe258e6e084d7eec018b89a499d014.tar.gz
test tap dance
Diffstat (limited to 'keyboards/planck/keymaps/khord/keymap.c')
-rw-r--r--keyboards/planck/keymaps/khord/keymap.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/keyboards/planck/keymaps/khord/keymap.c b/keyboards/planck/keymaps/khord/keymap.c
index e6c90c26d..04b95c744 100644
--- a/keyboards/planck/keymaps/khord/keymap.c
+++ b/keyboards/planck/keymaps/khord/keymap.c
@@ -33,6 +33,18 @@ enum planck_keycodes {
EXT_PLV
};
+// Tap Dance Declarations
+enum {
+ TD_ESC_CAPS = 0
+};
+
+// Tap Dance Definitions
+qk_tap_dance_action_t tape_dance_actions[] = {
+ //Tap once for Esc, twice for Caps Lock
+ [TD_ESC_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_CAPS)
+ // Other declarations would go here, separated by commas, if you have them
+};
+
// Fillers to make layering more clear
#define _______ KC_TRNS
#define XXXXXXX KC_NO
@@ -56,7 +68,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
*/
[_QWERTY] = {
{KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC},
- {KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT},
+ {TD(TD_ESC_CAPS), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT},
{KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, SFT_T(KC_ENT) },
{BACKLIT, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT}
},