Closed Fred-Vatin closed 11 months ago
Thanks for the bug report.
This bug is windows-only. It happens because kanata parser is compiled for wasm and if you look over kanata parser codebase you'll see that whenever a code is conditionally compiled based on target OS, wasm implementation would be missing. So either linux or windows implementation had to be choosen for wasm target. Arbitrarily, linux was choosen.
You can see an example of that here (target_os = "unknown"
is for wasm):
https://github.com/jtroo/kanata/blob/be561b23fa2e99ce7a8c79205a87669aca1e3d65/parser/src/keys/mod.rs#L7-L17
In order to fix this bug, a patch for kanata parser would be required, to allow selection of os-specific implementation (linux, win or wintercept) at runtime, instead of compile-time.
Fixed in v0.4.0
Steps to reproduce
Try this config
Results
It runs with no error in kanata but triggers the error in extension.
I suspect the OSCode (base 10) is confused with scancode. In
lock 8
,8
is the OSCode (base 10). The scancode for key7
is08
.With the key tester,
8
is forbackspace
and55
is forkey_7
. It confirms there is no conflicts between the keys.