#2201·kanata

bugs of chord

Author: shuangsystemCreated Sep 29, 2026Updated Sep 29, 2026
Labelsbug

Requirements

Describe the bug

lisp
(defcfg
  process-unmapped-keys yes
)

(defsrc)

(deflayermap (main)
  caps (tap-hold-press 0 180 caps (layer-while-held test))
)

(deflayermap (test)
  1 (chord cha n1)
  2 (chord cha n2)
  3 (chord cha n3)
  4 (chord cha n4)
  kp1 (chord cha kp1)
  kp2 (chord cha kp2)
  kp3 (chord cha kp3)
  kp4 (chord cha kp4)
  lctrl (layer-while-held test2)
)

(deflayermap (test2)
  kp1 (chord cha n1)
  kp2 (chord cha n2)
  kp3 (chord cha n3)
  kp4 (chord cha n4)
)

(defchords cha 65535
  (n1 n3) 2
  (n2 n4) 3
  (kp1 kp3) 6
  (kp2 kp4) 7
)

When I run with this configuration, after holding caps and then pressing lctrl, releasing caps, and then pressing kp1 and kp3, it outputs 6 instead of 2. 当我以这个配置运行时, 按住caps后按lctrl, 松开caps 然后按kp1和kp3会输出6而不是2

Relevant kanata config

To Reproduce

.

Expected behavior

.

Kanata version

kanata 12.1-pre

Debug logs

Operating system and I/O mechanism

archLinux

Additional context

No response