Enum Command
Actions which can be performed by a View.
public enum Command
Fields
Accept = 1Accepts the current state of the View (e.g. list selection, button press, checkbox state, etc.).
The default implementation in View calls RaiseAccepting(ICommandContext?). If the event is not handled, the command is invoked on: - Any peer-view that is a Button with IsDefault set to true. - The SuperView. This enables default Accept behavior.
Arrange = 64Enables arrange mode.
BackTab = 63Tabs back to the previous item.
Cancel = 70Cancels an action or any temporary states on the control e.g. expanding a combo list.
Collapse = 68Collapses a list or item (with subitems).
CollapseAll = 69Recursively collapses a list items of their children (if any).
Context = 78Shows context about the item (e.g. a context menu).
Copy = 53Copies the current selection.
Cut = 54Cuts the current selection.
CutToEndLine = 56Cuts to the clipboard the characters from the current position to the end of the line.
CutToStartLine = 57Cuts to the clipboard the characters from the current position to the start of the line.
DeleteAll = 42Deletes all objects.
DeleteCharLeft = 40Deletes the character on the left.
DeleteCharRight = 39Deletes the character on the right.
DisableOverwrite = 38Disables overwrite mode (EnableOverwrite)
Down = 5Moves down one item (cell, line, etc...).
DownExtend = 21Extends the selection down one (cell, line, etc...).
Edit = 79Invokes a user interface for editing or configuring something.
EnableOverwrite = 36Enables overwrite mode such that newly typed text overwrites the text that is already there (typically associated with the Insert key).
End = 15Moves to the end (e.g. the bottom).
EndExtend = 29Extends the selection to end (e.g. bottom).
EndOfPage = 13Moves to the bottom of page.
Expand = 66Expands a list or item (with subitems).
ExpandAll = 67Recursively Expands all child items and their child items (if any).
HotKey = 2Performs a hot key action (e.g. setting focus, accepting, and/or moving focus to the next View).
The default implementation in View calls SetFocus() and then RaiseHandlingHotKey(ICommandContext?).
Insert = 37Inserts a character.
KillWordBackwards = 34Deletes the characters backwards.
KillWordForwards = 33Deletes the characters forwards.
Left = 6Moves left one (cell, line, etc...).
LeftExtend = 22Extends the selection left one item (cell, line, etc...)
LeftStart = 16Moves left to the start on the current row/line.
LeftStartExtend = 30Extends the selection to the start on the current row/line.
LineDownToLastBranch = 45Moves down to the last child node of the branch that holds the current selection.
LineUpToFirstBranch = 46Moves up to the first child node of the branch that holds the current selection.
New = 77Creates a new document.
NewLine = 43Inserts a new item.
NextTabGroup = 60Moves focus to the next TabGroup.
NextTabStop = 58Moves focus to the next TabStop.
NotBound = 0Indicates the command is not bound or invalid. Will call RaiseCommandNotBound(ICommandContext?).
Open = 74Open the selected item or invoke a UI for opening something.
PageDown = 9Move one page down.
PageDownExtend = 26Move one page down extending the selection to cover revealed objects/characters.
PageLeft = 10Moves to the left page.
PageRight = 11Moves to the right page.
PageUp = 8Move one page up.
PageUpExtend = 27Move one page up extending the selection to cover revealed objects/characters.
Paste = 55Pastes the current selection.
PreviousTabGroup = 61Moves focus to the nextTabGroup.
PreviousTabStop = 59Moves focus to the previous TabStop.
Quit = 71Quit.
Redo = 52Redo changes.
Refresh = 72Refresh.
Right = 7Moves right one (cell, line, etc...).
RightEnd = 17Moves right to the end on the current row/line.
RightEndExtend = 31Extends the selection to the right on the current row/line.
RightExtend = 23Extends the selection right one item (cell, line, etc...)
Save = 75Saves the current document.
SaveAs = 76Saves the current document with a new name.
ScrollDown = 47Scrolls down one (cell, line, etc...).
ScrollLeft = 49Scrolls one item (cell, character, etc...) to the left.
ScrollRight = 50Scrolls one item (cell, character, etc...) to the right.
ScrollUp = 48Scrolls up one item (cell, line, etc...).
Select = 3Selects the View or an item in the View (e.g. a list item or menu item) without necessarily accepting it.
The default implementation in View calls RaiseSelecting(ICommandContext?).
SelectAll = 41Selects all objects.
Start = 14Moves to the start (e.g. the top or home).
StartExtend = 28Extends the selection to start (e.g. home or top).
StartOfPage = 12Moves to the top of page.
Suspend = 73Suspend an application (Only implemented in UnixDriver).
Tab = 62Tabs to the next item.
Toggle = 65Toggles something (e.g. the expanded or collapsed state of a list).
ToggleExtend = 32Toggles the selection.
ToggleOverwrite = 35Toggles overwrite mode such that newly typed text overwrites the text that is already there (typically associated with the Insert key).
Undo = 51Undo changes.
UnixEmulation = 44Unix emulation.
Up = 4Moves up one (cell, line, etc...).
UpExtend = 20Extends the selection up one item (cell, line, etc...).
WordLeft = 18Moves to the start of the previous word.
WordLeftExtend = 24Extends the selection to the start of the previous word.
WordRight = 19Moves the start of the next word.
WordRightExtend = 25Extends the selection to the start of the next word.
Remarks
Application supports a subset of these commands by default, which can be overriden via KeyBindings.
See the Commands Deep Dive for more information: https://gui-cs.github.io/Terminal.Gui/docs/command.html.