keys

package
v0.64.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2025 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllKnownKeys = []string{}/* 116 elements not displayed */

AllKnownKeys is a comprehensive list of all known keyboard combinations

View Source
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",
}

InputHandlerKeys are keys that can be handled by text input components

Functions

func CanInputHandle

func CanInputHandle(key tea.KeyMsg) bool

CanInputHandle checks if a key can be handled by input components

func IsKeyOrPrintable

func IsKeyOrPrintable(keyStr string) bool

IsKeyOrPrintable checks if a key is either a known key or a printable character

func IsKnownKey

func IsKnownKey(keyStr string) bool

IsKnownKey checks if a key string represents a known keyboard key combination

func IsPrintableCharacter

func IsPrintableCharacter(keyStr string) bool

IsPrintableCharacter checks if a key string represents a single printable character

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL