const_hoisted_1=/* @__PURE__ */createStaticVNode('<h1id="combos"tabindex="-1">Combos<aclass="header-anchor"href="#combos"aria-label="Permalink to "Combos""></a></h1><p>TheCombofeatureisachordingtypesolutionforaddingcustomactions.Itletsyouhitmultiplekeysatonceandproduceadifferenteffect.Forinstance,hitting<code>A</code>and<code>B</code>withinthecombotermwouldhit<code>ESC</code>instead,orhaveitperformevenmorecomplextasks.</p><p>Toenablethisfeature,youneedtoadd<code>COMBO_ENABLE=yes</code>toyour<code>rules.mk</code>.</p><p>Then,inyour<code>keymap.c</code>file,you'llneedtodefineasequenceofkeys,terminatedwith<code>COMBO_END</code>,andastructuretolistthecombinationofkeys,anditsresultingaction.</p><divclass="language-cvp-adaptive-theme"><buttontitle="CopyCode"class="copy"></button><spanclass="lang">c</span><preclass="shikishiki-themesgithub-lightgithub-darkvp-code"><code><spanclass="line"><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;">const</span><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;">uint16_t</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">PROGMEMtest_combo1</span><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;">[]</span><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">{KC_A,KC_B,COMBO_END};</span></span>\n<spanclass="line"><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;">const</span><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;">uint16_t</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">PROGMEMtest_combo2</span><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;">[]</span><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">{KC_C,KC_D,COMBO_END};</span></span>\n<spanclass="line"><spanstyle="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">combo_t</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">key_combos</span><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;">[]</span><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">{</span></span>\n<spanclass="line"><spanstyle="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">COMBO</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(test_combo1,KC_ESC),</span></span>\n<spanclass="line"><spanstyle="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">COMBO</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(test_combo2,</span><spanstyle="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">LCTL</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(KC_Z)),</span><spanstyle="--shiki-light:#6A737D;--shiki-dark:#6A737D;">//keycodeswithmodifiersarepossibletoo!</span></span>\n<spanclass="line"><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">};</span></span></code></pre></div><p>Thiswillsend"Escape"ifyouhittheAandBkeys,andCtrl+ZwhenyouhittheCandDkeys.</p><h2id="advanced-keycodes-support"tabindex="-1">AdvancedKeycodesSupport<aclass="header-anchor"href="#advanced-keycodes-support"aria-label="Permalinkto"AdvancedKeycodesSupport""></a></h2><p>Advancedkeycodes,suchas<ahref="./../mod_tap">Mod-Tap</a>and<ahref="./tap_dance">TapDance</a>arealsosupportedtogetherwithcombos.Ifyouusetheseadvancedkeycodesinyourkeymap,youwillneedtoplacethefullkeycodeinthecombodefinition,e.g.:</p><divclass="language-cvp-adaptive-theme"><buttontitle="CopyCode"class="copy"></button><spanclass="lang">c</span><preclass="shikishiki-themesgithub-lightgithub-darkvp-code"><code><spanclass="line"><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;">const</span><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;">uint16_t</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">PROGMEMtest_combo1