Type TextareaCommand

type TextareaCommand uint8

TextareaCommand is a request for the caller-owned editor. The component never applies commands or retains editor state itself.

Constants

const (
	TextareaCommandNone TextareaCommand = iota
	TextareaCommandInsertNewline
)

Constructors

TextareaCommandForKey#

func TextareaCommandForKey(snapshot TextareaSnapshot, key ui.Key) (TextareaCommand, bool)

TextareaCommandForKey maps only keys owned by a multiline editor. Text insertion, deletion, movement, selection extension, and IME remain platform or application editor responsibilities.