aboutsummaryrefslogtreecommitdiff
path: root/qmk/keyboards/sofle_choc/keymaps/custom/keycodes.c
diff options
context:
space:
mode:
Diffstat (limited to 'qmk/keyboards/sofle_choc/keymaps/custom/keycodes.c')
-rw-r--r--qmk/keyboards/sofle_choc/keymaps/custom/keycodes.c40
1 files changed, 1 insertions, 39 deletions
diff --git a/qmk/keyboards/sofle_choc/keymaps/custom/keycodes.c b/qmk/keyboards/sofle_choc/keymaps/custom/keycodes.c
index 069f5e2..761e653 100644
--- a/qmk/keyboards/sofle_choc/keymaps/custom/keycodes.c
+++ b/qmk/keyboards/sofle_choc/keymaps/custom/keycodes.c
@@ -46,44 +46,6 @@ bool caps_word_press_user(uint16_t keycode) {
}
}
-//
-// Override the symbol ° and replace it by `
-// The symbol is still available in the symbol layer with the key just below.
-//
-const key_override_t perc_key_override =
- ko_make_basic(MOD_MASK_SHIFT, KEY_PRC, LSFT(BP_PERC));
-
-//
-// I don’t care of the mapping CTRL+Ç and using the mod_tap does not work well
-// when I type too fast because of tap-dance, so I remap the pattern here.
-//
-const key_override_t c_key_override =
- ko_make_basic(MOD_MASK_CTRL, KEY_C, LCTL(BP_C));
-
-// Same here, I want to be able to type '' without triggering the tapdance.
-// And there is no such key combo for Alt+È.
-const key_override_t quote_key_override =
- ko_make_basic(MOD_MASK_ALT, KEY_EE, RALT(BP_COMM));
-
-// Same here, I override the key W with CTRL because the tapdance activate the
-// caps_word which does not make sense here.
-const key_override_t w_key_override =
- ko_make_basic(MOD_MASK_CTRL, KEY_W, LCTL(BP_W));
-
-const key_override_t e_key_override =
- ko_make_basic(MOD_MASK_CTRL, KEY_E, RCTL(BP_E));
-
-
-// This globally defines all key overrides to be used
-const key_override_t **key_overrides = (const key_override_t *[]){
- &perc_key_override,
- &c_key_override,
- &w_key_override,
- &e_key_override,
- &quote_key_override,
- NULL
-};
-
uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case KEY_E:
@@ -137,7 +99,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
// allow the repetition of KC_BSPC.
case KC_BSPC:
if (record->event.pressed \
- && timer_elapsed32(key_timer) < TAPPING_TERM \
+ && timer_elapsed32(key_timer) < (TAPPING_TERM / 2) \
&& latest_key != keycode)
{
// I completely rewrite the key here, that’s why I’m using tap_code16