Raxol.Headless.EventBuilder (Raxol v2.6.0)

View Source

Builds Raxol.Core.Events.Event structs from simple inputs.

Designed for headless session interaction where callers send keystrokes without constructing full Event structs manually.

Summary

Functions

Builds a key event from a character string or atom.

Functions

key(key, opts \\ [])

@spec key(
  String.t() | atom(),
  keyword()
) :: Raxol.Core.Events.Event.t()

Builds a key event from a character string or atom.

Examples

EventBuilder.key("q")
EventBuilder.key(:tab)
EventBuilder.key("c", ctrl: true)