The default keyboard behavior for the UltraTree control is determined by the contents of the TreeKeyActionMappings collection when the control is instantiated. Keyboard behavior can be modified by removing the mappings that appear by default, as well as adding custom ones.
KeyActionMapping objects can be modified, deleted, or added to change the keyboard behavior of the control.
The following table lists the default key mappings for the UltraTree control:
KeyCode | ActionCode | StateRequired | StateDisallowed | SpecialKeysRequired | SpecialKeysDisallowed |
---|---|---|---|---|---|
Right | NextNode | NodeHasChildren | InEdit, NodeExpandable, ActiveCell | None | AltCtrl |
Left | ParentNode | NodeChild | InEdit, NodeExpanded, ActiveCell | None | AltCtrl |
Up | PrevNode | None | InEdit, ActiveCell | None | AltCtrl |
Down | NextNode | None | InEdit, ActiveCell | None | AltCtrl |
Home | FirstNode | None | InEdit, ActiveCell | None | AltCtrl |
End | LastNode | None | InEdit, ActiveCell | None | AltCtrl |
Right | ExpandNode | NodeExpandable | InEdit, ActiveCell | None | Alt |
Left | CollapseNode | NodeExpanded | InEdit, ActiveCell | None | Alt |
Prior | PageUp | None | InEdit, ActiveCell | None | AltCtrl |
Next | PageDown | None | InEdit, ActiveCell | None | AltCtrl |
Escape | ExitEditMode | InEdit | CellInEditMode | None | Alt |
Enter | ExitEditModeAndSave | InEdit | CellInEditMode | None | AltCtrl |
F2 | EnterEditMode | None | InEdit, ActiveCell | None | Alt |
F2 | ExitEditModeAndSave | InEdit | CellInEditMode | None | Alt |
Multiply | ExpandAllNode | None | InEdit, ActiveCell | None | All |
Add | ExpandNode | NodeExpandable | InEdit, ActiveCell | None | Alt |
Subtract | CollapseNode | NodeExpanded | InEdit, ActiveCell | None | Alt |
Back | ParentNode | NodeChild | InEdit, ActiveCell | None | AltCtrl |
Space | ToggleSelection | None | InEdit, ActiveCell | Ctrl | Alt |
Space | ClearAllSelectedNodes | None | InEdit, ActiveCell | None | AltCtrl |
Space | SelectActiveNode | None | InEdit, ActiveCell | None | AltCtrl |
Space | ToggleCheckbox | IsCheckbox | InEdit, ActiveCell | None | AltCtrl |
Space | CheckOptionButton | IsOptionButton | InEdit, ActiveCell | None | AltCtrl |
Delete | DeleteNodes | None | InEdit, ActiveCell | None | AltCtrl |
Right | ExpandNode | NodeExpandable | InEdit, ActiveCell | Ctrl | Alt |
Left | CollapseNode | NodeExpanded | InEdit, ActiveCell | Ctrl | Alt |
Up | PrevNodeNoSelect | None | InEdit, ActiveCell | Ctrl | Alt |
Down | NextNodeNoSelect | None | InEdit, ActiveCell | Ctrl | Alt |
Home | FirstNodeNoSelect | None | InEdit, ActiveCell | Ctrl | Alt |
End | LastNodeNoSelect | None | InEdit, ActiveCell | Ctrl | Alt |
Prior | PageUpNoSelect | None | InEdit, ActiveCell | Ctrl | Alt |
Next | PageDownNoSelect | None | InEdit, ActiveCell | Ctrl | Alt |
X | Cut | AllowCut | InEdit, ActiveCell | Ctrl | AltShift |
C | Copy | AllowCopy | InEdit, ActiveCell | Ctrl | AltShift |
V | Paste | AllowPaste | InEdit, ActiveCell | Ctrl | AltShift |
Delete | Cut | AllowCut | InEdit, ActiveCell | Shift | AltCtrl |
Insert | Copy | AllowCopy | InEdit, ActiveCell | Ctrl | AltShift |
Insert | Paste | AllowPaste | InEdit, ActiveCell | Shift | AltCtrl |
Left | NoAction | None | InEdit, NodeChild, NodeExpanded, ActiveCell | None | AltCtrl |
Right | NoAction | None | InEdit, NodeHasChildren, ActiveCell | None | AltCtrl |
Left | ParentNode | NodeChild, NodeExpanded | InEdit, NodeHasChildren, ActiveCell | None | AltCtrl |
Right | NextNode | ActiveCell, ActiveCellIsInLastLogicalColumn | CellInEditMode, NextNodeDisplaysCells | None | All |
Down | NextNode | ActiveCell, ActiveCellIsOnLastLogicalRow | CellInEditMode, NextNodeDisplaysCells | None | All |
Left | PrevNode | ActiveCell, ActiveCellIsInFirstLogicalColumn | CellInEditMode, PreviousNodeDisplaysCells | None | All |
Up | PrevNode | ActiveCell, ActiveCellIsOnFirstLogicalRow | CellInEditMode, PreviousNodeDisplaysCells | None | All |
Home | FirstCellInNode | ActiveCell | CellInEditMode, FirstCellActive | None | All |
End | LastCellInNode | ActiveCell | CellInEditMode, LastCellActive | None | All |
Home | FirstCellInNodesCollection | FirstCellActive | CellInEditMode | None | All |
End | LastCellInNodesCollection | LastCellActive | CellInEditMode | None | All |
Home | FirstCellInTree | ActiveCell | CellInEditMode | Ctrl | AltShift |
End | LastCellInTree | ActiveCell | CellInEditMode | Ctrl | AltShift |
End | LastCellInTree | ActiveCell | CellInEditMode | Ctrl | AltShift |
Right | NextCell | ActiveCell | CellInEditMode | None | All |
Left | PreviousCell | ActiveCell | CellInEditMode | None | All |
Up | AboveCell | ActiveCell | CellInEditMode | None | All |
Down | BelowCell | ActiveCell | CellInEditMode | None | All |
F2 | EnterEditModeOnCell | ActiveCell | CellInEditMode | None | All |
F2 | ExitEditModeOnCellSaveChanges | ActiveCell, CellInEditMode | None | None | All |
Escape | UndoCellEdit | ActiveCell, CellInEditMode | None | None | All |
Escape | UndoNodeEdit | HasNodeChangesPending | InEdit, CellInEditMode | None | All |
Tab | SelectNextControl | LastCellActive, LastNodeActive | TabKeyNavigatesToNextCell, TabKeyNavigatesToNextControl | None | All |
Tab | SelectPreviousControl | FirstCellActive, FirstNodeActive | TabKeyNavigatesToNextCell, TabKeyNavigatesToNextControl | Shift | AltCtrl |
Tab | NextCellEnterEditMode | ActiveCell | None | None | All |
Tab | PreviousCellEnterEditMode | ActiveCell | None | Shift | AltCtrl |
Space | DeactivateCell | ActiveCell | CellInEditMode | Ctrl | AltShift |
Space | FirstCellInNode | ActiveNodeDisplaysCells | ActiveCell | Ctrl | AltShift |
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2