Browse Source

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.
repro/x11-position-after-reparent
Nicholas Lachapelle 4 weeks ago
committed by GitHub
parent
commit
ba4fedb31e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      src/iOS/Avalonia.iOS/AvaloniaView.Text.cs

3
src/iOS/Avalonia.iOS/AvaloniaView.Text.cs

@ -46,7 +46,6 @@ public partial class AvaloniaView
void ITextInputMethodImpl.Reset()
{
if (IsDrivingText)
BecomeFirstResponder();
// No-op
}
}

Loading…
Cancel
Save