Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bug: Key pressed before entering tap-hold timeout releases only after $hold-timeout passes #1794

@dudek-j

Description

@dudek-j

Requirements

Describe the bug

On macOS with 'Delay until repeat' so to the shortest value the attached config sporadically causes chatter.

Given the config and simulator input we get:

out:   ↓(press) D
t:              286ms
out: ↑(release) D

Intuitively I would expect the out: ↑(release) D event to occur at the same time as the physical key is released as shown in the Expected behavior output.

Hopefully this is a valid bug-report and not my mental model being out of alignment :).

Relevant kanata config

(defalias
  nav (tap-hold-release 50 250 spc (layer-while-held svnav))
)

(defsrc
  d
  spc
)

(deflayer qwerty
  d
  @nav
)

(deflayer svnav
  d
  spc
)

To Reproduce

Run in simulator with following input:

d:KeyD t:35 d:Space t:5 u:KeyD t:250 u:Space t:5

Expected behavior

Expected simulator output, basically as if space was never pressed:

out:   ↓(press) D
t:              35ms
out: ↑(release) D

Kanata version

Simulator v1.10.0-prerelease-1

Operating system and I/O mechanism

Simulator

Metadata

Metadata

Assignees

Labels

PRs welcomejtroo has no plans to work on this at present, but PRs are welcomebugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions