Skip to content

dual keys and timeouts problem #340

@kbilsted

Description

@kbilsted

hi thanks for a great application. i struggle with defining timouts on keys that have two purposes.

before i did the remap, i made a simpler remap to ensure that long- and fast-press actually works!

Foo = A
Foo{300ms} S >> "!"

slow press yields ! and fast press yields a, great!


now for my more esoteric problem.
My keyboard has two spacebars on my keyboard and the keyboard can be programmed via a horrible "via" software. therefore my spaces are mapped to F13 and F14 and i have keymapper doing the rest.

first i alias

# alias
L_META = F13
R_META = F13 | F14 

# combo
R_META{A} >> 1
R_META{S} >> 2
R_META{D} >> 3
R_META{F} >> 4

# finally i define my space key. it has to be the last definition
L_META >> Space
R_META >> Space

this works, but i often am sloppy so i hold space for too long when typing fast.. resulting in 1 being outputted rather than a. Thus i want to long press the meta-key for numbers to appear.

When i change the above to

R_META{200ms} A >> 1

it never output 1

how can i remap with long presses?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions