Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyDefinition ¶
type KeyboardLayout ¶
type KeyboardLayout struct { ValidKeys map[KeyInput]bool Keys map[KeyInput]KeyDefinition }
func GetKeyboardLayout ¶
func GetKeyboardLayout(name string) KeyboardLayout
GetKeyboardLayout returns the keyboard layout registered with name.
func (KeyboardLayout) KeyDefinition ¶ added in v0.1.2
func (kl KeyboardLayout) KeyDefinition(key KeyInput) (KeyDefinition, bool)
KeyDefinition returns true with the key definition of a given key input. It returns false and an empty key definition if it cannot find the key.
func (KeyboardLayout) ShiftKeyDefinition ¶ added in v0.1.2
func (kl KeyboardLayout) ShiftKeyDefinition(key KeyInput) KeyDefinition
ShiftKeyDefinition returns shift key definition of a given key input. It returns an empty key definition if it cannot find the key.
Click to show internal directories.
Click to hide internal directories.