From ba4fedb31ee682f1cf245a0400a942a74ea8dfb2 Mon Sep 17 00:00:00 2001 From: Nicholas Lachapelle <102546121+NicholasLachapelle@users.noreply.github.com> Date: Tue, 20 Oct 2026 05:32:59 +0000 Subject: [PATCH] Keep the iOS keyboard up when focus moves between text boxes (#22529) Reset() made the AvaloniaView first responder before SetClient handed it to the next text box. AvaloniaView is not a text input, so UIKit dismissed the keyboard and presented it again on every focus change between text boxes. Reset() is now a no-op, as on Android. The input method manager always calls SetClient right after it, which makes the next text box's responder first responder directly. When focus leaves text input, SetClient(null) still dismisses the keyboard. --- src/iOS/Avalonia.iOS/AvaloniaView.Text.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/iOS/Avalonia.iOS/AvaloniaView.Text.cs b/src/iOS/Avalonia.iOS/AvaloniaView.Text.cs index dbdddd2cc5..f0fa13ad23 100644 --- a/src/iOS/Avalonia.iOS/AvaloniaView.Text.cs +++ b/src/iOS/Avalonia.iOS/AvaloniaView.Text.cs @@ -46,7 +46,6 @@ public partial class AvaloniaView void ITextInputMethodImpl.Reset() { - if (IsDrivingText) - BecomeFirstResponder(); + // No-op } }