jtroo / kanata

Improve keyboard comfort and usability with advanced customization
GNU Lesser General Public License v3.0
2.1k stars 108 forks source link

Bug: In WSL space is inserted after shift or control when running kanata in host #1063

Open dev-ardi opened 3 months ago

dev-ardi commented 3 months ago

Requirements

Describe the bug

Kanata works well in windows but when I open wsl it inserts a space after shift or when holding caps lock (sending control)

Relevant kanata config

(defcfg process-unmapped-keys yes)
(defsrc)

(defalias
oneshot_shift (one-shot-press 500 lsft)
oneshot_alt (one-shot-press 500 lalt) 
taphold_esc_lctl (tap-hold-press 150 500 esc lctl)
oneshot_meta (one-shot-press 500 lmet)
)

(deflayermap (base-layer)
lsft : @oneshot_shift
rsft : @oneshot_shift
lalt : @oneshot_alt  
ralt : C-a 
caps : @taphold_esc_lctl 
lmet : @oneshot_meta
rmet : @oneshot_meta
esc  : @taphold_esc_lctl
lctl : XX
rctl : XX
)

Kanata version

kanata 1.6.0

Debug logs

No response

Operating system

Windows 10

Additional context

No response

jtroo commented 3 months ago

That's pretty unusual. Can you get the debug logs?

Also seems like you're using an older pre-release build with deprecated syntax. Is the behaviour any different with a more recent build?

SymphonySimper commented 2 weeks ago

This issue seems to be fixed in the pre release build (v1.7.0-prerelease-1).

LamprosPitsillos commented 1 week ago

had the same issue, can confirm that the issue is not present on 1.7.0 prerelease