TermUI.Event.Key (TermUI v0.2.0)

View Source

Keyboard input event.

Represents a key press with optional character and modifiers.

Summary

Functions

Creates a new key event.

Types

t()

@type t() :: %TermUI.Event.Key{
  char: String.t() | nil,
  key: atom(),
  modifiers: [atom()],
  timestamp: integer()
}

Functions

new(key, opts \\ [])

Creates a new key event.