We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e94eb91 commit 01d726cCopy full SHA for 01d726c
ILSpy/Controls/TreeView/SharpTreeView.cs
@@ -361,6 +361,17 @@ protected override void OnKeyDown(KeyEventArgs e)
361
}
362
363
break;
364
+ case Key.System:
365
+ // https://github.com/icsharpcode/ILSpy/issues/3378:
366
+ // Behavior got broken when upgrading to .NET 8.0 for unknown reasons and without
367
+ // any more specific known cause. We fix it by not handling Alt+Left or Right
368
+ // in SharpTreeView so it is handled by the window.
369
+ if (e.SystemKey is Key.Left or Key.Right)
370
+ {
371
+ // yes, we do NOT call base.OnKeyDown(e); in this case.
372
+ return;
373
+ }
374
+ break;
375
376
if (!e.Handled)
377
base.OnKeyDown(e);
0 commit comments