-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Description
When using the SearchHandler control inside a .NET MAUI Shell app on Android, the on-screen keyboard flickers every time a key is pressed. This leads to a poor user experience, as the keyboard appears to redraw or lose focus momentarily on each keystroke.
In addition, typing quickly can result in lost characters — for example, typing "jaja" often results in "jaa".
At first, I suspected it could be a performance issue or some debounce logic interfering with the input. However, I removed all debounce/delay logic and even tested with an empty handler (no event code at all), and the issue persisted exactly the same. This points more toward a focus management or InputConnection issue (perhaps the control is briefly losing and regaining focus or recreating the input connection).
This behavior is reproducible using the official sample app and also occurs in multiple real-world applications.
Current behavior
- The on-screen keyboard flickers (visually redraws) on each keystroke.
- If typing fast, some characters are dropped. For example, typing “jaja” results in “jj”.
- This behavior is visible in both the sample and multiple production apps.
Expected behavior
- The keyboard should remain visible and stable during typing.
- All typed characters should be registered without loss.
Test environment
- Device: Redmi Note 9 Pro
- Android Version: 10
- Tested on physical device
- Observed in both Debug and Release builds
- MAUI version: 9.0.80 SR8
- Issue occurs only with SearchHandler, not with Entry or other input controls.
Evidence
📹 Video 1 (slow motion): Demonstrates keyboard flickering while typing.
Example1.mp4
📹 Video 2 (slow motion): Attempting to type “jaja”, only “jaa” is registered.
Example2.mp4
Steps to Reproduce
- Clone the maui-samples repository.
- Open the Xanimals solution under maui-samples/9.0/Fundamentals/Shell.
- Update the Microsoft.Maui.Controls NuGet package to version 9.0.80.
- Deploy the app to a physical Android device.
- Tap on the SearchHandler field to focus and start typing.
Link to public reproduction project repository
https://github.com/dotnet/maui-samples
Version with bug
9.0.80 SR8
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
I don't now
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
Metadata
Metadata
Assignees
Labels
Type
Projects
Status