-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[Android & iOS]Make SearchHandler's Focus() and Unfocus() work #29278
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
base: main
Are you sure you want to change the base?
Conversation
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/SearchHandlerAppearanceTracker.cs
Outdated
Show resolved
Hide resolved
src/Controls/src/Core/Compatibility/Handlers/Shell/Android/SearchHandlerAppearanceTracker.cs
Outdated
Show resolved
Hide resolved
src/Controls/src/Core/Compatibility/Handlers/Shell/Android/SearchHandlerAppearanceTracker.cs
Outdated
Show resolved
Hide resolved
_editText.ClearFocus(); | ||
if (_editText.IsSoftInputShowing()) | ||
{ | ||
_editText.HideSoftInput(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should hide this by default
If users want the keyboard to hide they can use the keyboard API to do this.
If we leave this as a side effect then there's not really a way for users to opt out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm.. Does the same should apply to Foucs()
as well ? Because I'm currently calling an extension method which forces the keyboard to show.
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue29277.cs
Outdated
Show resolved
Hide resolved
The same fix has already been included in PR - #28186 |
Sorry I missed that. |
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Description of Change
iOS
iOS_Before_fix.mov
iOS_After_fix.mov
Android
Android_Before_fix.mov
Android_after_fix.mov
Issues Fixed
Fixes #29277