Skip to content

Restore keyboard activation for selected tree items - #4036

Open
SychicBoy wants to merge 1 commit into
icsharpcode:masterfrom
SychicBoy:fix-4030-treeview-keyboard-activation
Open

Restore keyboard activation for selected tree items#4036
SychicBoy wants to merge 1 commit into
icsharpcode:masterfrom
SychicBoy:fix-4030-treeview-keyboard-activation

Conversation

@SychicBoy

Copy link
Copy Markdown
Contributor

Fixes #4030

Problem

In ILSpy 10.x, Enter and Space activated the selected item in SharpTreeView.
After the Avalonia migration, ListBoxItem handles these keys as selection input before they reach SharpTreeView, so the existing activation logic is not invoked.

Solution

  • Override ShouldTriggerSelection so Enter and Space can be handled by SharpTreeView instead of being intercepted by ListBoxItem selection handling.

Allow Enter and Space to be handled by SharpTreeView instead of being intercepted by ListBoxItem selection handling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Enter" key now does nothing in Analyzer pane

1 participant