Type InputGroupCommand

type InputGroupCommand uint8

InputGroupCommand is a request for the caller-owned editor. Addon button activation continues through its normal stable canvas hit ID.

Constants

const (
	InputGroupCommandNone InputGroupCommand = iota
	InputGroupCommandInsertNewline
)

Constructors

InputGroupCommandForKey#

func InputGroupCommandForKey(snapshot InputGroupSnapshot, key ui.Key) (InputGroupCommand, bool)

InputGroupCommandForKey maps only commands owned by the selected control shape. Single-line groups leave Enter to form activation; multiline groups request a newline from the caller-owned editor.