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
)类型 TextCommand
API 文档由 Go 源码生成,内容为英文。
type TextCommand uint8TextCommand identifies one platform-normalized editing command.