Skip to content

[.NET10] Add An API to SearchHandler so users can hide or show the softkeyboard #29559

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
PureWeen opened this issue May 16, 2025 · 0 comments

Comments

@PureWeen
Copy link
Member

PureWeen commented May 16, 2025

Description

By default, unfocusing a control doesn't hide the keyboard on Android

#28186

If you want to close the keyboard then you should use a specific API to hide the keyboard.

Unfocusing and Keyboard visibility aren't two related functions on Android
They are on iOS which I realize can cause some confusion

Unfocusing an Element to close the keyboard is bad for accessibility because it will unexpectedly modify where current focus is which will always be a surprising behavior to someone that's visually impaired.

I realize this causes somewhat odd behavior because if you navigate via SearchHandler the keyboard will remain open
#16298

But for that we should also just look at different APIs. Perhaps we can add an API to Pages about closing the keyboard while navigating? Perhaps there's a bug here where the navigation should be closing it but it's not because focus is still being incorrectly applied somewhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

2 participants