summaryrefslogtreecommitdiffstats
path: root/keyboard/ergodox_ez/keymaps/bepo/keymap.c
diff options
context:
space:
mode:
authorDidier Loiseau <didierloiseau+git@gmail.com>2016-03-08 23:27:18 +0100
committerDidier Loiseau <didierloiseau+git@gmail.com>2016-04-02 18:16:32 +0200
commitb2a4434abbfe63902be668c34995587193f778dd (patch)
tree86c0b93f89bb490f2fa26838e894c8d3f9e0b64a /keyboard/ergodox_ez/keymaps/bepo/keymap.c
parent3a91ddb0745ae0f52007984793ea1b48abb2098c (diff)
BÉPO over CSA: Fixed key repeat for M_NBSP
Diffstat (limited to 'keyboard/ergodox_ez/keymaps/bepo/keymap.c')
-rw-r--r--keyboard/ergodox_ez/keymaps/bepo/keymap.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/keyboard/ergodox_ez/keymaps/bepo/keymap.c b/keyboard/ergodox_ez/keymaps/bepo/keymap.c
index 6cee216a43..db6c9583eb 100644
--- a/keyboard/ergodox_ez/keymaps/bepo/keymap.c
+++ b/keyboard/ergodox_ez/keymaps/bepo/keymap.c
@@ -2,6 +2,7 @@
#include "ergodox_ez.h"
#include "debug.h"
#include "action_layer.h"
+#include "action_util.h"
#include "led.h"
#include "keymap_extras/keymap_bepo.h"
#include "keymap_extras/keymap_canadian_multilingual.h"
@@ -391,7 +392,9 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
case M_GRV:
return MACRO(DOWN(CSA_ALTGR), TYPE(CSA_DCRC), UP(CSA_ALTGR), T(SPACE), END);
case M_NBSP:
- return MACRO(DOWN(CSA_ALTGR), T(SPACE), UP(CSA_ALTGR), END);
+ // use weak mod such that pressing another key will not be affected
+ add_weak_mods(MOD_BIT(CSA_ALTGR));
+ return MACRO(D(SPACE), END);
}
} else {
hold_shift();
@@ -403,6 +406,9 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
return MACRO(UP(CSA_ALTGR), D(LSFT), U(SCLN), END);
case M_SCLN:
return MACRO(D(LSFT), U(SCLN), END);
+ case M_NBSP:
+ del_weak_mods(MOD_BIT(CSA_ALTGR));
+ return MACRO(U(SPACE), END);
}
}
break;