qmk/qmk_firmware

[Bug] Auto Shift custom filter hjkl can not work

Open

#21 982 ouverte le 12 sept. 2023

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)C (43 867 forks)batch import
bughelp wanted

Métriques du dépôt

Stars
 (20 368 stars)
Métriques de merge PR
 (Merge moyen 20j 9h) (27 PRs mergées en 30 j)

Description

Describe the Bug

The Auto Shift feature is incredibly useful. However, it conflicts with long-pressing hjkl in Vim. I've tried modifying keymap.c, but it didn't work.

bool get_auto_shifted_key(uint16_t keycode, keyrecord_t *record) {
    switch (keycode) {
        case KC_H:
        case KC_J:
        case KC_K:
        case KC_L:
            return false; // disable Auto-Shift
        default:
            return true; // others Auto-Shift
    }
}

rules.mk

VIA_ENABLE          = yes
VIAL_ENABLE         = yes
LTO_ENABLE          = yes

RGBLIGHT_ENABLE     = yes
RGB_MATRIX_ENABLE   = no # Can't have RGBLIGHT and RGB_MATRIX at the same time.
MOUSEKEY_ENABLE     = no
OLED_ENABLE         = no
OLED_DRIVER         = SSD1306
EXTRAKEY_ENABLE     = yes
COMBO_ENABLE        = no

QMK_SETTINGS        = yes

AUTO_SHIFT_ENABLE = yes

Guide contributeur