microsoft / microsoft/microsoft-ui-xaml

Proposal: support keyboard shortcuts to expand/collapse children in TreeView

Open
#9,924 3 comments 3 reactions 0 assignees View on GitHub
area-TreeView feature proposal
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

# Proposal: support keyboard shortcuts to expand/collapse children in TreeView

## Summary
Add support to the TreeView control to expand/recursively expand/collaps the selected node when the +/*/- keys are pressed.

## Rationale
The TreeView controls in WPF (and probably also WinForms/Win32) allow the following keyboard shortcuts when an item is selected in a TreeView:

* plus key: expand selected node
* asterisk key: recursively expand all child nodes
* minus key: collapse selected node

These shortcuts have been in use for a long time and supported across applications. It would be desirable that WinUI continues to support them. Especially the shortcut to recursively expand nodes is sometimes very useful because it is not available via the mouse or touch (as far as I know).

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by locating the WinUI TreeView keyboard-input handling, then compare the requested +, *, and - behaviors with existing selection and expansion behavior; done means the selected node expands, recursively expands, or collapses as specified.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.