Skip to content

Commit

Permalink
fix: Fully qualify Window for iOS/macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
robloo committed Sep 4, 2020
1 parent c53316a commit 308ef6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ protected override void OnKeyDown(KeyRoutedEventArgs args)
return;
}

bool isControlDown = (Window.Current.CoreWindow.GetKeyState(VirtualKey.Control) & CoreVirtualKeyStates.Down) == CoreVirtualKeyStates.Down;
// Uno Doc: Window must be fully qualified for iOS/macOS where NSWindow maps to Window
bool isControlDown = (Windows.UI.Xaml.Window.Current.CoreWindow.GetKeyState(VirtualKey.Control) & CoreVirtualKeyStates.Down) == CoreVirtualKeyStates.Down;

double minBound = 0;
double maxBound = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ protected override void OnKeyDown(KeyRoutedEventArgs args)
return;
}

bool isControlDown = (Window.Current.CoreWindow.GetKeyState(VirtualKey.Control) & CoreVirtualKeyStates.Down) == CoreVirtualKeyStates.Down;
// Uno Doc: Window must be fully qualified for iOS/macOS where NSWindow maps to Window
bool isControlDown = (Windows.UI.Xaml.Window.Current.CoreWindow.GetKeyState(VirtualKey.Control) & CoreVirtualKeyStates.Down) == CoreVirtualKeyStates.Down;

ColorPickerHsvChannel incrementChannel = ColorPickerHsvChannel.Hue;

Expand Down

0 comments on commit 308ef6c

Please sign in to comment.