Skip to content

ifHold does not activate on timeout #1446

@mhantsch

Description

@mhantsch

ifHold currently does not activate until I release the key. It should already activate on timeout.

My steps to reproduce:

graveTilde macro bound to the ` ~ key:

ifShortcut 1 exec quoteLong
ifHold exec quoteLong
holdKey graveAccentAndTilde

When I tap it, I get a grave accent. ✔️
When I combo it with 1, I immediately get the quoteLong result. ✔️
When I hold it, nothing happens until I release it. Then I get the quoteLong result. 🤔

This should resolve as soon as the timeout is reached.

Configuring set holdTimeout 350 in $onInit doesn't make a difference.

quoteLong just types two lines of triple backticks with an empty line in between, and places the cursor on the empty line, ready to have some code pasted into it:

tapKeySeq graveAccentAndTilde graveAccentAndTilde graveAccentAndTilde
tapKeySeq enter enter
tapKeySeq graveAccentAndTilde graveAccentAndTilde graveAccentAndTilde enter
tapKeySeq up up

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions