Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AllKnownKeys = []string{}/* 126 elements not displayed */
AllKnownKeys is a comprehensive list of all known keyboard combinations
var InputHandlerKeys = []string{
"space", "tab", "enter", "alt+enter", "shift+enter", "backspace", "delete",
"up", "down", "left", "right", "home", "end",
"ctrl+a", "ctrl+e", "ctrl+u", "ctrl+k", "ctrl+w", "ctrl+l",
"ctrl+z", "ctrl+y",
"super+v", "super+c",
}
InputHandlerKeys are keys that can be handled by text input components
Functions ¶
func CanInputHandle ¶
func CanInputHandle(key tea.KeyPressMsg) bool
CanInputHandle checks if a key can be handled by input components
func IsKnownKey ¶
IsKnownKey checks if a key string represents a known keyboard key combination or a single printable character
func IsPrintableCharacter ¶
IsPrintableCharacter checks if a key string represents a single printable character
func PrintableText ¶
func PrintableText(key tea.KeyPressMsg) string
PrintableText returns the literal characters of a key press, or "" for keys with no printable text. String() returns the key name such as "ctrl+c", which suits keybinding lookups but not text input.
Types ¶
This section is empty.