I’m developing an iOS app in .NET Maui and I’m experiencing an issue where the keyboard briefly disappears when I shift focus from one entry field to the next.
By default, if you have two entry fields and press enter in one entry it will not move the focus to the next entry field. To resolve this, I’m using the Completed event to manually move focus to the appropriate field.
This works, but the issue is that in between moving to the next field the keyboard hides and then reappears. This looks janky and interrupts the flow of the app.
Is there a way to keep the keyboard open?
Xaml
<Entry x:Name="entryOne" Completed="Entry_Completed"/>
<Entry x:Name="entryTwo" Completed="Entry_Completed"/>
Codebehind:
private async void Entry_Completed(object sender, EventArgs e)
{
//Move to next entry field
if (sender == entryOne)
entryTwo.Focus();
else
entryOne.Focus();
}