Skip to content

Feature request: antecedent-morph (aka adaptive keys) #1624

@urob

Description

@urob

This is an idea for a new behavior, which I think could be really useful and open up all sorts of creative uses:

The antecedent-morph behavior would trigger an alternative binding if within timeout-ms the immediate predecessor matches the trigger condition. This would enable using adaptive keys where certain keys change their meaning if pressed immediately after another key, as popularized by the Hands Down layouts.

For instance, in the Hands Down layout, ,A send UA. Using the proposed behavior, this could be implemented by replacing &kp A with a antecedent-morph configured as follows:

adaptive_A: adaptive_A {
    compatible=  "zmk,behavior-antecedent-morph";
    bindings = <&kp A>, <&morphed_A>;
    timeout-ms = <1000>;
    antecedent = <&kp DOT>:
}

and where &morphed_A is a macro executing BACKSPACE, U, A.

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