summaryrefslogtreecommitdiffstats
path: root/keyboard/hhkb
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-01-28 03:30:23 +0100
committertmk <nobody@nowhere>2013-01-28 03:30:23 +0100
commit854c803fdda30d7f7905c18d777ea85cac9b74d9 (patch)
tree4039718dd8412af86992288bc9ac7ac996078353 /keyboard/hhkb
parentbfd7fe586297d70f824a402fd476c3daa889fa56 (diff)
downloadqmk_firmware-854c803fdda30d7f7905c18d777ea85cac9b74d9.tar.gz
qmk_firmware-854c803fdda30d7f7905c18d777ea85cac9b74d9.tar.xz
Add tap toggle feature to action.
Diffstat (limited to 'keyboard/hhkb')
-rw-r--r--keyboard/hhkb/keymap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/keyboard/hhkb/keymap.c b/keyboard/hhkb/keymap.c
index b74dc71ba..2d0dabd70 100644
--- a/keyboard/hhkb/keymap.c
+++ b/keyboard/hhkb/keymap.c
@@ -63,6 +63,8 @@ static const uint16_t PROGMEM fn_actions[] = {
ACTION_RMODS_TAP(MOD_BIT(KC_RCTL), KC_ENT), // Fn7
ACTION_LMODS_TAP(MOD_BIT(KC_LSFT), ONE_SHOT), // Fn8
+ ACTION_LAYER_SET_ON_RELEASED_TAP_TOGGLE(1), // Fn9
+ ACTION_LAYER_BIT_TAP_TOGGLE(1), // Fn10
};
@@ -83,7 +85,7 @@ static const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KEYMAP(ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSLS,GRV, \
TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSPC, \
FN6, A, S, D, F, G, H, J, K, L, FN3, QUOT,FN7, \
- FN8, Z, X, C, V, B, N, M, COMM,DOT, FN2, RSFT,FN1, \
+ FN8, Z, X, C, V, B, N, M, COMM,DOT, FN2, RSFT,FN10, \
LGUI,LALT, FN5, RALT,FN4),
/* Layer 1: HHKB mode (HHKB Fn)
@@ -102,7 +104,7 @@ static const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KEYMAP(PWR, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, INS, DEL, \
CAPS,NO, NO, NO, NO, NO, NO, NO, PSCR,SLCK,BRK, UP, NO, BSPC, \
LCTL,VOLD,VOLU,MUTE,NO, NO, PAST,PSLS,HOME,PGUP,LEFT,RGHT,ENT, \
- LSFT,NO, NO, NO, NO, NO, PPLS,PMNS,END, PGDN,DOWN,RSFT,FN0, \
+ LSFT,NO, NO, NO, NO, NO, PPLS,PMNS,END, PGDN,DOWN,RSFT,FN10, \
LGUI,LALT, SPC, RALT,RGUI),
/* Layer 2: Vi mode (Slash)