Skip to content

Possible further improvement to doubletap #1500

@firngrod

Description

@firngrod

This is not meant as an "It must be so!" kind of thing, just a thought:
With doubletap as is is now, if I start spamming a key, every other activation will be registered as a doubletap. All fine and good, but when for instance I'm navigating through something tapping my dual role arrow key, if I then start holding it to doubletap to primary, if I had tapped an uneven number of times, I will not get a doubletap-to-primary activation, which is about half the time.
It is possible in the implementation that I made with global doubletap to not actually "consume" a doubletap every time. Basically, a key will be eligible as a doubletap, but unless it's actually used as a doubletap, it won't block the next tap from being one. That is to say that we could make it so that a key is not used as a doubletap unless something triggers from it, be that primary activation, an ifDoubletap in a macro, or a layer lock in the layer case. The primary effect would, in the immediate term, be that a "spam-to-hold" on secondary role keys would always allow double-tap to primary.

I will do a quick PR soon, unless someone adamantly wants me not to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions