From f0ab0afa486e46f3da7190902d45249a8e2cd5f1 Mon Sep 17 00:00:00 2001 From: Drew Neil Date: Wed, 14 Jan 2026 23:18:12 +0000 Subject: [PATCH] Enable PERMISSIVE_HOLD to prevent accidental Cmd+Space Using release order (PERMISSIVE_HOLD) instead of press order (HOLD_ON_OTHER_KEY_PRESS) prevents accidental Command activation when typing words ending in 'd' or 'k' followed by space. The mod-tap key is treated as a tap if released before the following key. Also adds D+K+Space combo for intentional Cmd+Space (Spotlight). --- keyboards/ferris/sweep/keymaps/qwerty/config.h | 4 ++-- keyboards/ferris/sweep/keymaps/qwerty/keymap.c | 4 +++- keyboards/ferris/sweep/keymaps/qwerty/layout.yaml | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/keyboards/ferris/sweep/keymaps/qwerty/config.h b/keyboards/ferris/sweep/keymaps/qwerty/config.h index fd4f1d85..da456a69 100644 --- a/keyboards/ferris/sweep/keymaps/qwerty/config.h +++ b/keyboards/ferris/sweep/keymaps/qwerty/config.h @@ -34,12 +34,12 @@ along with this program. If not, see . // Pick good defaults for enabling homerow modifiers #define TAPPING_TERM 200 -// #define PERMISSIVE_HOLD +#define PERMISSIVE_HOLD // Use release order to determine tap vs hold #define QUICK_TAP_TERM 0 // Chordal Hold: homerow mods only activate for opposite-hand chords #define CHORDAL_HOLD -#define HOLD_ON_OTHER_KEY_PRESS +// #define HOLD_ON_OTHER_KEY_PRESS // Conflicts with PERMISSIVE_HOLD // https://docs.qmk.fm/#/feature_caps_word #define DOUBLE_TAP_SHIFT_TURNS_ON_CAPS_WORD diff --git a/keyboards/ferris/sweep/keymaps/qwerty/keymap.c b/keyboards/ferris/sweep/keymaps/qwerty/keymap.c index 3e136ecb..cd0b50a3 100644 --- a/keyboards/ferris/sweep/keymaps/qwerty/keymap.c +++ b/keyboards/ferris/sweep/keymaps/qwerty/keymap.c @@ -244,8 +244,10 @@ const key_override_t *key_overrides[] = { }; const uint16_t PROGMEM qwerty_combo[] = {KC_ESC, KC_TAB, KC_BSPC, COMBO_END}; +const uint16_t PROGMEM spotlight_combo[] = {MT(MOD_LGUI, KC_D), MT(MOD_RGUI, KC_K), KC_SPACE, COMBO_END}; combo_t key_combos[] = { - COMBO(qwerty_combo, TO(0)) + COMBO(qwerty_combo, TO(0)), + COMBO(spotlight_combo, LGUI(KC_SPACE)) }; #if defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE) diff --git a/keyboards/ferris/sweep/keymaps/qwerty/layout.yaml b/keyboards/ferris/sweep/keymaps/qwerty/layout.yaml index df6971cf..579f60e9 100644 --- a/keyboards/ferris/sweep/keymaps/qwerty/layout.yaml +++ b/keyboards/ferris/sweep/keymaps/qwerty/layout.yaml @@ -45,3 +45,4 @@ layers: combos: - {p: [0, 1], k: "Esc+Tab combo", l: ["BASE"], a: top} - {p: [8, 9], k: "Special combo", l: ["BASE"], a: top} + - {p: [12, 17, 33], k: "Cmd+Space (Spotlight)", l: ["BASE"], a: top}