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).
This commit is contained in:
Drew Neil 2026-01-14 23:18:12 +00:00
commit f0ab0afa48
3 changed files with 6 additions and 3 deletions

View file

@ -34,12 +34,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// Pick good defaults for enabling homerow modifiers // Pick good defaults for enabling homerow modifiers
#define TAPPING_TERM 200 #define TAPPING_TERM 200
// #define PERMISSIVE_HOLD #define PERMISSIVE_HOLD // Use release order to determine tap vs hold
#define QUICK_TAP_TERM 0 #define QUICK_TAP_TERM 0
// Chordal Hold: homerow mods only activate for opposite-hand chords // Chordal Hold: homerow mods only activate for opposite-hand chords
#define CHORDAL_HOLD #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 // https://docs.qmk.fm/#/feature_caps_word
#define DOUBLE_TAP_SHIFT_TURNS_ON_CAPS_WORD #define DOUBLE_TAP_SHIFT_TURNS_ON_CAPS_WORD

View file

@ -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 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_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) #if defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE)

View file

@ -45,3 +45,4 @@ layers:
combos: combos:
- {p: [0, 1], k: "Esc+Tab combo", l: ["BASE"], a: top} - {p: [0, 1], k: "Esc+Tab combo", l: ["BASE"], a: top}
- {p: [8, 9], k: "Special 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}