Expand description
Input model for Kova Native.
Platform backends translate native events into InputEvents; the UI
layer dispatches them through the element tree in a capture phase
(root → target) followed by a bubble phase (target → root).
Macros§
- actions
- Declares unit-struct actions:
actions!(Save, Quit, ToggleSidebar);
Structs§
- Click
Tracker - Counts consecutive clicks that are close in time and space.
- KeyBinding
- A binding from a keystroke sequence to an action.
- KeyDown
Event - KeyUp
Event - Keymap
- A collection of key bindings plus multi-keystroke matching state.
- Keystroke
- A single key press with modifiers, e.g.
ctrl-shift-p. - Keystroke
Parse Error - Error returned when a keystroke string cannot be parsed.
- Modifiers
- Modifier key state.
- Mouse
Down Event - Mouse
Move Event - Mouse
UpEvent - PenEvent
- Pressure-sensitive pointer event in logical window pixels.
- Scroll
Wheel Event
Enums§
- Cursor
Style - Mouse cursor shapes.
- Dispatch
Phase - The phase in which an event handler runs.
- ImeEvent
- Input method editor events (composition of CJK text, dead keys, emoji picker…).
- Input
Event - Any input event delivered to a window.
- Key
- A logical key.
- Keymap
Match - Result of feeding a keystroke into the
Keymap. - Mouse
Button - A mouse button.
- Named
Key - Keys that do not produce text.
- PenPhase
- Phase of a pressure-sensitive pointer (for example, a stylus).
- Scroll
Delta - Scroll amount reported by the device.
Traits§
- Action
- A command that can be triggered by key bindings or programmatically.