-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
MAUI When clicking blank and the keyboard is hidden, Entry does not have corresponding processing events And Xamarin can handle. #18125
Comments
@PureWeen thoughts? |
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process. |
Hi @BaY1251. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
@BaY1251 what platform is this? |
@mattleibow Is this a regression from previous behavior? Affected platforms |
public bool OnSingleTapUp(MotionEvent e)
{
var location = GetBoundingBox(_platformView);
var point = new Point(e.RawX, e.RawY);
if (location.Contains(point))
return true;
if (KeyboardManager.IsSoftKeyboardVisible(_view))
KeyboardManager.HideKeyboard(_view);
```
// Custom here: alawys clear focus
if (_platformView.HasFocus && _view.IsFocused)
{
_platformView.ClearFocus();
}
```
return true;
} Based on TapToCloseBehavior , I have added my Custom for keeping Android with iOS that can clear focus after Hiding Keyboard. |
Duplicate of #16357 We can't have unfocusing an entry be a side effect of closing the SoftKeyboard for various a11y reasons, but we do need to supply an API that will let users fill in what they were using the unfocused event for. Which is what the issue linked above should do. |
@PureWeen In Xamarin, Entry did ultimately capture the focus, but after the soft keyboard disappeared, Unfocused was triggered for verification
The point is not the focus, but Entry needs to know that the soft keyboard is turned off in order to verify the data.
The core issue is that Entry needs to know that the keyboard has been turned off.
The handling event in Xamarin happens to be unfocused.
MAUI can have other events
Version with bug
8.0.0-rc.2.9373
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Affected platforms
Android
The image is a demonstration by Xamarin, and MAUI is currently unable to achieve this effect
Originally posted by @BaY1251 in #16530 (comment)
The text was updated successfully, but these errors were encountered: