类型 TextCommand

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

type TextCommand uint8

TextCommand identifies one platform-normalized editing command.

常量

const (
	TextDeleteBackward TextCommand = iota + 1
	TextDeleteForward
	TextMoveLeft
	TextMoveRight
	TextMoveLeftAndModifySelection
	TextMoveRightAndModifySelection
	TextInsertNewline
	TextInsertTab
	// TextInsertLineBreak is a line break asked for without ending the entry:
	// Shift+Enter (and Option or Control+Enter on macOS). A chat box submits on
	// TextInsertNewline and adds a line on this one.
	TextInsertLineBreak
	TextUndo
	TextRedo
	TextSelectAll
	TextMoveLineStart
	TextMoveLineEnd
	TextMoveLineStartAndModifySelection
	TextMoveLineEndAndModifySelection
	TextMoveDocumentStart
	TextMoveDocumentEnd
	TextMoveDocumentStartAndModifySelection
	TextMoveDocumentEndAndModifySelection
	TextMoveWordLeft
	TextMoveWordRight
	TextMoveWordLeftAndModifySelection
	TextMoveWordRightAndModifySelection
	TextDeleteWordBackward
	TextDeleteWordForward
)