Module kanata_keyberon::action

source ·
Expand description

The different actions that can be executed via any given key.

Re-exports§

Modules§

  • Handle processing of the switch action for Keyberon.

Structs§

  • A group of chords (actions mapped to a combination of multiple physical keys pressed together).
  • An action that can do one of two actions. The left action is the default. The right action will trigger if any of the key codes in right_triggers are active in the current layout state.
  • Perform different actions on key hold/tap.
  • Define one shot key behaviour.
  • Define tap dance behaviour.

Enums§

  • The different actions that can be done.
  • Behavior configuration of HoldTap.
  • Determine the ending behaviour of the one shot key.
  • A state that that can be released from the active states via the ReleaseState action.
  • The different types of actions we support for key sequences/macros
  • Determines the behaviour for a TapDance.

Constants§

  • Defines the maximum number of (virtual) keys that can be used in a single chords group.
  • Defines the maximum number of one shot keys that can be combined.

Functions§

  • A shortcut to create a Action::DefaultLayer, useful to create compact layout.
  • A shortcut to create a Action::KeyCode, useful to create compact layout.
  • A shortcut to create a Action::Layer, useful to create compact layout.

Type Aliases§

  • A set of virtual keys (represented as a bit mask) pressed together. The keys do not directly correspond to physical keys. They are unique to a given [ChordGroup] and their mapping from physical keys is definied in [ChordGroup.coords]. As such, each chord group can effectively have at most 32 different keys (though multiple physical keys may be mapped to the same virtual key).