Keybinding

class Keybinding(val parts: List<Keybinding.Part>) : Node

A keyboard shortcut or key combination, rendered as a sequence of key labels. Each Part represents a single key or modifier in the combination.

Parameters

parts

the ordered list of keys and modifiers in the combination

Constructors

Link copied to clipboard
constructor(parts: List<Keybinding.Part>)

Types

Link copied to clipboard

Alt on Windows/Linux, Option on macOS.

Link copied to clipboard

Ctrl on Windows/Linux/macOS.

Link copied to clipboard
data class Key(val name: String) : Keybinding.Part

A regular (non-modifier) key.

Link copied to clipboard
sealed interface Part

A single part of a keybinding, representing either a regular key or a modifier key.

Link copied to clipboard

Ctrl on Windows/Linux, Cmd on macOS.

Link copied to clipboard

Shift on Windows/Linux/macOS.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun <T> accept(visitor: NodeVisitor<T>): T

Accepts a visitor.

Link copied to clipboard

Retrieves the stored media associated with this node, if any.

Link copied to clipboard