HOWTO: Layout Editor - tap-dance example shift capslock

Опубликовано: 12 Июль 2026
на канале: Moosy Research
1,824
18

Check out the Layout Editor Playlist Playlist here:
   • MoErgo Layout Editor: How-To Videos  

Full Playlist:
   • MoErgo Glove80 User Community Playlist  
https://zmk.dev/docs/behaviors/tap-dance
https://zmk.dev/docs/config/behaviors...

behaviors {
shiftdance: shiftdance{
compatible = "zmk,behavior-tap-dance";
label = "SQuote";
#binding-cells =
tapping-term-ms =
bindings = &sk RSHIFT, &kp CAPSLOCK;
};
};



DISCLAIMER:
This video was independently created by a member of the #glove80community and is not intended to serve as a substitute for the official MoErgo Glove80 documentation. It is not an official MoErgo video, and MoErgo does not endorse or assume responsibility for its content.


To use the tap-dance feature on the Glove80 keyboard, you will need to define the behaviour in the "Custom Defined Behaviors" section of the layout editor. The first line of the behaviour definition is the name that you will use in your keymapping. The second line is a description that is only visible to you. The remaining lines define the behaviour, including the binding and modifier key behaviour. For example, to create a tap-dance behaviour where a single tap outputs a space, a hold outputs a backspace, and a double tap outputs enter, you would use the following code:

ap-Dance Behavior
Summary
A tap-dance key invokes a different behavior (e.g. kp) corresponding to how many times it is pressed. For example, you could configure a tap-dance key that acts as LSHIFT if tapped once, or Caps Lock if tapped twice. The expandability of the number of bindings attached to a particular tap-dance is a great way to add more functionality to a single key, especially for keyboards with a limited number of keys. Tap-dances are completely custom, so for every unique tap-dance key,a new tap-dance must be defined in your keymap's behaviors.

Tap-dances are designed to resolve immediately when interrupted by another keypress. Meaning, when a keybind is pressed other than any active tap-dances, the tap-dance will activate according to the current value of its counter before the interrupting keybind is registered.

Configuration