zmk/docs/docs/behaviors/key-repeat.md
Joel Spadin 65667b863a docs: Add syntax highlighting to more code blocks
Added language tags to more code blocks in the documentation to enable
syntax highlighting.
2023-10-09 15:19:24 -07:00

677 B

title sidebar_label
Key Repeat Behavior Key Repeat

Summary

The key repeat behavior when triggered will send whatever keycode was last sent/triggered.

Behavior Binding

  • Reference: &key_repeat

Example:

&key_repeat

Configuration

Usage Pages

By default, the key repeat will only track the last pressed key from the HID "Key" usage page, and ignore events from other usages, e.g. Consumer page.

If you'd rather have the repeat also capture and send Consumer page usages, you can update the existing behavior:

&key_repeat {
    usage-pages = <HID_USAGE_KEY HID_USAGE_CONSUMER>;
};

/ {
    keymap {
        ...
    };
};