From dfb35d02234fc4e6193784611e85b53e4142c82b Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Fri, 20 Sep 2024 20:02:32 +0200 Subject: Updated the code to qmk 61778f6136 --- .../sofle_choc/keymaps/custom/overrides.h | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 qmk/keyboards/sofle_choc/keymaps/custom/overrides.h (limited to 'qmk/keyboards/sofle_choc/keymaps/custom/overrides.h') diff --git a/qmk/keyboards/sofle_choc/keymaps/custom/overrides.h b/qmk/keyboards/sofle_choc/keymaps/custom/overrides.h new file mode 100644 index 0000000..c531a12 --- /dev/null +++ b/qmk/keyboards/sofle_choc/keymaps/custom/overrides.h @@ -0,0 +1,41 @@ +#pragma once + +#include "keymap_bepo.h" +#include "keycodes.h" + +// +// 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 ; + +// +// 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 ; + +// 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 ; + +// 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 ; + +const key_override_t e_key_override ; + +// 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, + "e_key_override, + // Override the key GUI + MENU and to map the key desktop from the + // typematrix + &(ko_make_basic(MOD_MASK_GUI, KEY_APP, MENU)), + + + NULL +}; -- cgit v1.2.3