Skip to content

Commit

Permalink
feat: (iOS) Add enable corewindows events
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpinedam committed Aug 11, 2022
1 parent 4645e48 commit 7e98596
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Uno.UWP/Generated/3.0.0.0/Windows.UI.Core/CoreWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public string GetCurrentKeyEventDeviceId()
}
}
#endif
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || false || __NETSTD_REFERENCE__ || false
#if __ANDROID__ || false || NET461 || __WASM__ || false || __NETSTD_REFERENCE__ || false
[global::Uno.NotImplemented("__ANDROID__", "__IOS__", "NET461", "__WASM__", "__NETSTD_REFERENCE__")]
public event global::Windows.Foundation.TypedEventHandler<global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.KeyEventArgs> KeyDown
{
Expand All @@ -252,7 +252,7 @@ public string GetCurrentKeyEventDeviceId()
}
}
#endif
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || false || __NETSTD_REFERENCE__ || false
#if __ANDROID__ || false || NET461 || __WASM__ || false || __NETSTD_REFERENCE__ || false
[global::Uno.NotImplemented("__ANDROID__", "__IOS__", "NET461", "__WASM__", "__NETSTD_REFERENCE__")]
public event global::Windows.Foundation.TypedEventHandler<global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.KeyEventArgs> KeyUp
{
Expand Down
4 changes: 2 additions & 2 deletions src/Uno.UWP/Generated/3.0.0.0/Windows.UI.Core/ICoreWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ bool IsInputEnabled
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
event global::Windows.Foundation.TypedEventHandler<global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.InputEnabledEventArgs> InputEnabled;
#endif
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if __ANDROID__ || false || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
event global::Windows.Foundation.TypedEventHandler<global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.KeyEventArgs> KeyDown;
#endif
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if __ANDROID__ || false || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
event global::Windows.Foundation.TypedEventHandler<global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.KeyEventArgs> KeyUp;
#endif
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
Expand Down
4 changes: 4 additions & 0 deletions src/Uno.UWP/UI/Core/CoreWindow.iOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ namespace Windows.UI.Core
{
public partial class CoreWindow
{
public event TypedEventHandler<CoreWindow, KeyEventArgs> KeyDown;

public event TypedEventHandler<CoreWindow, KeyEventArgs> KeyUp;

private readonly UIWindow _window;

public CoreWindow(UIWindow window) : this()
Expand Down

0 comments on commit 7e98596

Please sign in to comment.