Skip to content

SearchHandler causes keyboard flickering and character loss on Android #30072

@BartoGabriel

Description

@BartoGabriel

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

  1. Clone the maui-samples repository.
  2. Open the Xanimals solution under maui-samples/9.0/Fundamentals/Shell.
  3. Update the Microsoft.Maui.Controls NuGet package to version 9.0.80.
  4. Deploy the app to a physical Android device.
  5. 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

No one assigned

    Labels

    i/regressionThis issue described a confirmed regression on a currently supported versionp/0Current heighest priority issues that we are targeting for a release.partner/syncfusionIssues / PR's with Syncfusion collaborationplatform/androidregressed-in-9.0.70s/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triageshell-search-handlert/bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions