Cringe.Event.Key (cringe v0.3.1)

Copy Markdown View Source

Keyboard event.

Summary

Types

key()

@type key() :: atom()

mod()

@type mod() :: :alt | :ctrl | :meta | :shift

t()

@type t() :: %Cringe.Event.Key{key: key(), mods: [mod()]}

Functions

new(key, opts \\ [])

@spec new(
  key(),
  keyword()
) :: t()