From 4094fc62dac9525eea48da4c4de4c9b2a8de2eaf Mon Sep 17 00:00:00 2001 From: Marius Hintsche Date: Fri, 14 Nov 2014 23:34:08 +0100 Subject: [PATCH] fixed bug in numpadlayer in default keymap there was no way to leave that layer --- keyboard/ergodox/keymap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/keyboard/ergodox/keymap.c b/keyboard/ergodox/keymap.c index 6a1e4d65..048be0e8 100644 --- a/keyboard/ergodox/keymap.c +++ b/keyboard/ergodox/keymap.c @@ -162,7 +162,7 @@ static const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { TRNS, TRNS,TRNS,TRNS, // right hand - SLCK,NLCK,PSLS,PAST,PAST,PMNS,BSPC, + TRNS,NLCK,PSLS,PAST,PAST,PMNS,BSPC, TRNS,NO, P7, P8, P9, PMNS,BSPC, NO, P4, P5, P6, PPLS,PENT, TRNS,NO, P1, P2, P3, PPLS,PENT, @@ -185,9 +185,9 @@ enum function_id { static const uint16_t PROGMEM fn_actions[] = { ACTION_FUNCTION(TEENSY_KEY), // FN0 - Teensy key ACTION_LAYER_MOMENTARY(1), // FN1 - switch to Layer1 - ACTION_LAYER_SET(2, ON_PRESS), // FN2 - push Layer2 - ACTION_LAYER_SET(3, ON_PRESS), // FN3 - push Layer3 - ACTION_LAYER_SET(0, ON_PRESS), // FN4 - push Layer0 + ACTION_LAYER_SET(2, ON_PRESS), // FN2 - set Layer2 + ACTION_LAYER_TOGGLE(3), // FN3 - toggle Layer3 aka Numpad layer + ACTION_LAYER_SET(0, ON_PRESS), // FN4 - set Layer0 }; void action_function(keyrecord_t *event, uint8_t id, uint8_t opt) -- 2.46.2