TermUI.Event.Focus (TermUI v0.2.0)

View Source

Focus change event.

Sent to components when they gain or lose focus.

Summary

Functions

Creates a new focus event.

Types

action()

@type action() :: :gained | :lost

t()

@type t() :: %TermUI.Event.Focus{action: action(), timestamp: integer()}

Functions

new(action, opts \\ [])

Creates a new focus event.