Skip to content

Commit

Permalink
fix(iOS): Window null pointer exception
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpinedam committed Sep 17, 2023
1 parent e774ca8 commit 0a51e71
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Uno.UI/Controls/Window.iOS.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable enable
using System;
using System.Drawing;
using System.Linq;
Expand Down Expand Up @@ -182,6 +183,11 @@ public override void PressesBegan(NSSet<UIPress> presses, UIPressesEvent evt)
{
foreach (UIPress press in presses)
{
if (press.Key is null)
{
continue;
}

if (press.Key.KeyCode == UIKeyboardHidUsage.KeyboardTab)
{
var shift =
Expand Down

0 comments on commit 0a51e71

Please sign in to comment.