类型 InputGroupCommand

API 文档由 Go 源码生成,内容为英文。

type InputGroupCommand uint8

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

常量

const (
	InputGroupCommandNone InputGroupCommand = iota
	InputGroupCommandInsertNewline
)

构造函数

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.