Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

Keyboard Interface

A tree control responds to the arrow keys, PgUp, PgDn, Up, Down, Home, End, etc. to change the selected item.

Typing one or more alphanumeric characters while a tree control has the input focus will reposition the selection on a matching item, based on the SftTree.CharSearchMode and SftTree.CharSearchDisplayColumn properties.

Left Arrow - If the current item is an expanded parent item, the left arrow key will collapse the item. Otherwise, the left arrow key will change the current item to the item's immediate parent item.

Right Arrow - If the current item is a collapsed parent item, the right arrow key will expand the item. Otherwise, the right arrow key will change the current item to the first immediate dependent item.

+ (numeric keypad) - If the current item is a collapsed parent item, the + key will generate an ItemClick event (ItemClickAreaEnum.ExpandCollapseButton) to expand the item. Otherwise, the + key will have no effect. If SftTree.AutoRespond is set to True, the ItemClick event is automatically handled, resulting in the item being expanded. If SftTree.AutoRespond is set to False, the ItemClick event must be handled by the application.

- (numeric keypad) - If the current item is an expanded parent item, the - key will generate an ItemClick event (ItemClickAreaEnum.ExpandCollapseButton) to collapse the item. Otherwise, the - key will have no effect. If SftTree.AutoRespond is set to True, the ItemClick event is automatically handled, resulting in the item being collapsed. If SftTree.AutoRespond is set to False, the ItemClick event must be handled by the application.

* (numeric keypad) - If the current item is a collapsed parent item, the * key will generate an ItemClick event (ItemClickAreaEnum.ExpandCollapseButtonAll) to expand the item completely. Otherwise, the * key will have no effect. If SftTree.AutoRespond is set to True, the ItemClick event is automatically handled, resulting in the item being expanded. If SftTree.AutoRespond is set to False, the ItemClick event must be handled by the application.

Return - The HandleReturn property can be used to determine handling and support of the Return key.

Space Bar - The space bar selects/deselects the current item (honoring the Control and Shift keys).