zmkfirmware / zmk

ZMK Firmware Repository
https://zmk.dev/
MIT License
2.48k stars 2.55k forks source link

Inconsistent behavior when using &caps_word #2316

Closed swisscows closed 1 month ago

swisscows commented 1 month ago

Hi all,

I am getting strange behavior when using the &caps_word behavior behind a combo. I will get seemingly random lowercase characters thrown into my string of uppercase chars.

image

All of the above instances were obtained by hitting my combo for caps_word, typing h e l l o and then hitting space and reactivating caps_word.

The relevant parts of my config are below.

Board: Corne Shield: nice!nano v2 OS: Fedora 39 and Windows 10

&caps_word {
    continue-list = <UNDERSCORE MINUS DOT COMMA BSPC DEL LSHIFT RSHIFT LCTRL RCTRL LALT RALT LMETA RMETA>;
};

#define BASE  0
#define COMBO_TERM_VERY_SLOW 60
#define COMBO_PRIOR_IDLE 100

 #define COMBO(NAME, BINDINGS, KEYPOS, LAYERS, MS) \
    combo_##NAME { \
        timeout-ms = <MS>; \
        require-prior-idle-ms = <COMBO_PRIOR_IDLE>; \
        key-positions = <KEYPOS>; \
        layers = <LAYERS>; \
        bindings = <BINDINGS>; \
    };

COMBO(caps,          &caps_word, 31 34, BASE, COMBO_TERM_VERY_SLOW)

As a list of things I have ruled out.

If anyone has any insight about what may be going on I would appreciate the help. Thank you.

caksoylar commented 1 month ago

Sounds like it is related to #759. Fedora 39 should have Gnome 45 which in theory doesn't have this issue because it has the fixed Mutter. It might still be worth checking the version.

swisscows commented 1 month ago

Interesting, I am actually on the KDE spin with xorg using kwin version 5.27.11. When I connect to windows 10 I connect directly, not via RDP.

swisscows commented 1 month ago

Actually, after looking at #2288 the ibus package seems to be at fault here. Killing it resolves the issue and restarting it brings it back.

swisscows commented 1 month ago

Closing, as "not a zmk issue".