UI module

send_key

procedure · 1 overloadsince 0.31.0Source

Queue a key press.

send_key :: (
    ui: *UI_State,
    key: Key_Code,
    mods: Modifiers = .{},
    repeat: bool = false
)

Queue a key press.

Parameters

ui: *UI_State
the UI to queue the event on.
key: Key_Code
the key pressed.
mods: Modifiers
the modifiers held.
repeat: bool
true for an auto-repeat rather than a fresh press.

See also