Std.Ui.Keymap
13 public declarations
- Binding
A chord bound to a command, with the words a menu shows for it.
- Binds
Adding bindings reads top to bottom:
Keymap.keymap().bind(...).bind(...). - chordsFor
&Std.Ui.Keymap.Keymap -> Str -> Array[Str]Every chord bound to a command.
- commandFor
&Std.Ui.Keymap.Keymap -> Str -> Option[Str]The command a chord runs; the first binding wins.
- explain
&Std.Ui.Keymap.KeymapError -> StrA one-line description of a refusal.
- forPlatform
&Std.Ui.Keymap.Keymap -> Bool -> Std.Ui.Keymap.KeymapThe keymap with
modresolved tocmdon Apple platforms andctrl - handler
&Std.Ui.Keymap.Keymap -> fn(S, Str) -> S -> fn(S, Str) -> Option[S]A shortcut handler for
Desktop.drive: a bound chord applies its command - keymap
Std.Ui.Keymap.KeymapA keymap with no bindings.
- Keymap
Bindings in the order they were added.
- KeymapError
Why a chord was refused.
- label
Str -> Bool -> StrHow a menu shows a chord: symbols run together on Apple platforms
- normalize
Str -> Result[Str, Std.Ui.Keymap.KeymapError]A chord in canonical form: lower case, aliases resolved, modifiers in the
- problems
&Std.Ui.Keymap.Keymap -> Array[Str]Bindings that cannot be normalized, and chords bound to more than one
