Skip to content

Bug: inconsistent key name when using &to layer-name in ZMK layout #157

@floating-cat

Description

@floating-cat

I have a ZMK keymap that in location 1 and 2 below, it uses To-on-Tap, Momentary-on-Hold Layers behavior like this ZMK example here so for location 1 when I am holding the left thumb key, it applies momentary Nav layer, and if I tape it, it enables Nav layout and disables all other layers except the Base one.
Also, in location 3 below, I use &to Base.

Image

The problem is:

  1. It shows "toggle layer-name" for location 3 but shows "layer-name" directly for locations 1 2's tap location.
  2. It shows "toggle layer-name" instead of "to layer-name" for location 3.

Expected:
It shows "to layer-name" for location 3 and also shows "to layer-name" directly for locations 1 2's tap location.

I tried to use:

  raw_binding_map:
    "SMART_NAV": {s: to, t: Nav, h: Nav}
    "SMART_MOUSE": {s: to, t: Mouse, h: Mouse}
    "&to BASE": {s: to, t: Base}

but due to #113, it short circuits the usual processing when using raw_binding_map so the held property doesn't work causing another issue.

Fixing this name inconsistent or making the processing not short circuits, either way works fine for me.

Thanks!

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