qmk/qmk_firmware

[Bug] Auto Shift custom filter hjkl can not work

Open

#21.982 geöffnet am 12. Sept. 2023

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C (43.867 Forks)batch import
bughelp wanted

Repository-Metriken

Stars
 (20.368 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 20T 9h) (27 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide