Skip to content

Commit 7e98596

Browse files
committed
feat: (iOS) Add enable corewindows events
1 parent 4645e48 commit 7e98596

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

src/Uno.UWP/Generated/3.0.0.0/Windows.UI.Core/CoreWindow.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public string GetCurrentKeyEventDeviceId()
236236
}
237237
}
238238
#endif
239-
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || false || __NETSTD_REFERENCE__ || false
239+
#if __ANDROID__ || false || NET461 || __WASM__ || false || __NETSTD_REFERENCE__ || false
240240
[global::Uno.NotImplemented("__ANDROID__", "__IOS__", "NET461", "__WASM__", "__NETSTD_REFERENCE__")]
241241
public event global::Windows.Foundation.TypedEventHandler<global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.KeyEventArgs> KeyDown
242242
{
@@ -252,7 +252,7 @@ public string GetCurrentKeyEventDeviceId()
252252
}
253253
}
254254
#endif
255-
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || false || __NETSTD_REFERENCE__ || false
255+
#if __ANDROID__ || false || NET461 || __WASM__ || false || __NETSTD_REFERENCE__ || false
256256
[global::Uno.NotImplemented("__ANDROID__", "__IOS__", "NET461", "__WASM__", "__NETSTD_REFERENCE__")]
257257
public event global::Windows.Foundation.TypedEventHandler<global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.KeyEventArgs> KeyUp
258258
{

src/Uno.UWP/Generated/3.0.0.0/Windows.UI.Core/ICoreWindow.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ bool IsInputEnabled
131131
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
132132
event global::Windows.Foundation.TypedEventHandler<global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.InputEnabledEventArgs> InputEnabled;
133133
#endif
134-
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
134+
#if __ANDROID__ || false || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
135135
event global::Windows.Foundation.TypedEventHandler<global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.KeyEventArgs> KeyDown;
136136
#endif
137-
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
137+
#if __ANDROID__ || false || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
138138
event global::Windows.Foundation.TypedEventHandler<global::Windows.UI.Core.CoreWindow, global::Windows.UI.Core.KeyEventArgs> KeyUp;
139139
#endif
140140
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__

src/Uno.UWP/UI/Core/CoreWindow.iOS.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ namespace Windows.UI.Core
99
{
1010
public partial class CoreWindow
1111
{
12+
public event TypedEventHandler<CoreWindow, KeyEventArgs> KeyDown;
13+
14+
public event TypedEventHandler<CoreWindow, KeyEventArgs> KeyUp;
15+
1216
private readonly UIWindow _window;
1317

1418
public CoreWindow(UIWindow window) : this()

0 commit comments

Comments
 (0)