mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-02-27 01:56:43 +00:00
16 lines
8.6 KiB
JavaScript
16 lines
8.6 KiB
JavaScript
|
import { _ as _export_sfc, c as createElementBlock, o as openBlock, a8 as createStaticVNode } from "./chunks/framework.DyMmIvSC.js";
|
|||
|
const __pageData = JSON.parse('{"title":"Space Cadet: The Future, Built In","description":"","frontmatter":{},"headers":[],"relativePath":"features/space_cadet.md","filePath":"features/space_cadet.md"}');
|
|||
|
const _sfc_main = { name: "features/space_cadet.md" };
|
|||
|
const _hoisted_1 = /* @__PURE__ */ createStaticVNode('<h1 id="space-cadet-the-future-built-in" tabindex="-1">Space Cadet: The Future, Built In <a class="header-anchor" href="#space-cadet-the-future-built-in" aria-label="Permalink to "Space Cadet: The Future, Built In""></a></h1><p>Steve Losh described the <a href="https://web.archive.org/web/20230330090938/https://stevelosh.com/blog/2012/10/a-modern-space-cadet/" target="_blank" rel="noreferrer">Space Cadet Shift</a> quite well. Essentially, when you tap Left Shift on its own, you get an opening parenthesis; tap Right Shift on its own and you get the closing one. When held, the Shift keys function as normal. Yes, it's as cool as it sounds, and now even cooler supporting Control and Alt as well!</p><h2 id="usage" tabindex="-1">Usage <a class="header-anchor" href="#usage" aria-label="Permalink to "Usage""></a></h2><p>Firstly, in your keymap, do one of the following:</p><ul><li>Replace the Left Shift key with <code>SC_LSPO</code> (Left Shift, Parenthesis Open), and Right Shift with <code>SC_RSPC</code> (Right Shift, Parenthesis Close).</li><li>Replace the Left Control key with <code>SC_LCPO</code> (Left Control, Parenthesis Open), and Right Control with <code>SC_RCPC</code> (Right Control, Parenthesis Close).</li><li>Replace the Left Alt key with <code>SC_LAPO</code> (Left Alt, Parenthesis Open), and Right Alt with <code>SC_RAPC</code> (Right Alt, Parenthesis Close).</li><li>Replace any Shift key in your keymap with <code>SC_SENT</code> (Right Shift, Enter).</li></ul><h2 id="keycodes" tabindex="-1">Keycodes <a class="header-anchor" href="#keycodes" aria-label="Permalink to "Keycodes""></a></h2><table><thead><tr><th>Keycode</th><th>Aliases</th><th>Description</th></tr></thead><tbody><tr><td><code>QK_SPACE_CADET_LEFT_CTRL_PARENTHESIS_OPEN</code></td><td><code>SC_LCPO</code></td><td>Left Control when held, <code>(</code> when tapped</td></tr><tr><td><code>QK_SPACE_CADET_RIGHT_CTRL_PARENTHESIS_CLOSE</code></td><td><code>SC_RCPC</code></td><td>Right Control when held, <code>)</code> when tapped</td></tr><tr><td><code>QK_SPACE_CADET_LEFT_SHIFT_PARENTHESIS_OPEN</code></td><td><code>SC_LSPO</code></td><td>Left Shift when held, <code>(</code> when tapped</td></tr><tr><td><code>QK_SPACE_CADET_RIGHT_SHIFT_PARENTHESIS_CLOSE</code></td><td><code>SC_RSPC</code></td><td>Right Shift when held, <code>)</code> when tapped</td></tr><tr><td><code>QK_SPACE_CADET_LEFT_ALT_PARENTHESIS_OPEN</code></td><td><code>SC_LAPO</code></td><td>Left Alt when held, <code>(</code> when tapped</td></tr><tr><td><code>QK_SPACE_CADET_RIGHT_ALT_PARENTHESIS_CLOSE</code></td><td><code>SC_RAPC</code></td><td>Right Alt when held, <code>)</code> when tapped</td></tr><tr><td><code>QK_SPACE_CADET_RIGHT_SHIFT_ENTER</code></td><td><code>SC_SENT</code></td><td>Right Shift when held, Enter when tapped</td></tr></tbody></table><h2 id="caveats" tabindex="-1">Caveats <a class="header-anchor" href="#caveats" aria-label="Permalink to "Caveats""></a></h2><p>Space Cadet's functionality can conflict with the default Command functionality when both Shift keys are held at the same time. See the <a href="./command">Command feature</a> for info on how to change it, or make sure that Command is disabled in your <code>rules.mk</code> with:</p><div class="language-make vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">make</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">COMMAND_ENABLE = no</span></span></code></pre></div><h2 id="configuration" tabindex="-1">Configuration <a class="header-anchor" href="#configuration" aria-label="Permalink to "Configuration""></a></h2><p>By default Space Cadet assumes a US ANSI layout, but if your layout uses different keys for parentheses, you can redefine them in your <code>config.h</code>. In addition, you can redefine the modifier to send on tap, or even send no modifier at all. The new confi
|
|||
|
const _hoisted_17 = [
|
|||
|
_hoisted_1
|
|||
|
];
|
|||
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|||
|
return openBlock(), createElementBlock("div", null, _hoisted_17);
|
|||
|
}
|
|||
|
const space_cadet = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|||
|
export {
|
|||
|
__pageData,
|
|||
|
space_cadet as default
|
|||
|
};
|