mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
Avalonia 12 treats plain Enter/Space on a ListBoxItem as selection input: the container marks the KeyDown handled before it bubbles, so SharpTreeView.OnKeyDown never saw the keys and its activation handling (navigate to the member from an analyzer row, toggle a checkable row) was dead. Override ShouldTriggerSelection -- the extension point added for this in Avalonia 12 -- to suppress the selection trigger exactly for the case OnKeyDown activates instead: a single selected row that is the row the key landed on. Multi-row selections keep the default collapse-to-focused-row behaviour. Assisted-by: Claude:claude-fable-5:Claude Codepull/4039/head
2 changed files with 54 additions and 0 deletions
Loading…
Reference in new issue