Skip to content

Commit

Permalink
chore: Adjust for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Dec 5, 2022
1 parent a5582bf commit 7a35560
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Uno.UI/Microsoft/UI/Xaml/Controls/TabView/TabViewItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -587,8 +587,8 @@ protected override void OnKeyDown(KeyRoutedEventArgs args)
// ListView also handles Alt+Arrow (no Shift) by just doing regular XY focus,
// same as how it handles Arrow without any modifier keys, so in that case
// we do want to handle things so we get the improved keyboarding experience.
var isAltDown = (Window.Current.CoreWindow.GetKeyState(VirtualKey.Menu) & CoreVirtualKeyStates.Down) == CoreVirtualKeyStates.Down;
var isShiftDown = (Window.Current.CoreWindow.GetKeyState(VirtualKey.Shift) & CoreVirtualKeyStates.Down) == CoreVirtualKeyStates.Down;
var isAltDown = (Windows.UI.Xaml.Window.Current.CoreWindow.GetKeyState(VirtualKey.Menu) & CoreVirtualKeyStates.Down) == CoreVirtualKeyStates.Down;
var isShiftDown = (Windows.UI.Xaml.Window.Current.CoreWindow.GetKeyState(VirtualKey.Shift) & CoreVirtualKeyStates.Down) == CoreVirtualKeyStates.Down;

if (!isAltDown || !isShiftDown)
{
Expand Down

0 comments on commit 7a35560

Please sign in to comment.