Tuix.Event.Key (tuix v0.1.0)

Copy Markdown View Source

A keyboard event.

key is either a single printable grapheme ("a", "+", "é") or a named key atom:

:enter, :tab, :backtab, :backspace, :escape, :up, :down, :left, :right, :home, :end, :insert, :delete, :page_up, :page_down, :space

Summary

Types

t()

@type t() :: %Tuix.Event.Key{
  alt: boolean(),
  ctrl: boolean(),
  key: String.t() | atom(),
  shift: boolean()
}