We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e86d93 commit d990f18Copy full SHA for d990f18
src/Plugin.Maui.KeyListener/KeyboardPageViewController.cs
@@ -13,6 +13,17 @@ public class KeyboardPageViewController : PageViewController
13
internal KeyboardPageViewController(IView page, IMauiContext mauiContext)
14
: base(page, mauiContext) { }
15
16
+#if IOS // Workaround to allow receiving keys when the root page is a Shell
17
+ public override bool CanBecomeFirstResponder => true;
18
+
19
+ public override void ViewIsAppearing(bool animated)
20
+ {
21
+ base.ViewIsAppearing(animated);
22
23
+ BecomeFirstResponder();
24
+ }
25
+#endif
26
27
public override void PressesBegan(NSSet<UIPress> presses, UIPressesEvent evt)
28
{
29
if (ProcessPresses(presses, evt, false))
0 commit comments