-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Don't show text selector when no text is ready #15770
Conversation
You can test this PR using the following package version. |
On Android with Samsung S23 (not using Avalonia) here is the functionality.
I think you are oversimplifying this a bit and the selection handle is useful user feedback in some cases. At least it makes clear where the cursor is. |
I'm only able to show the handles on an empty textbox when you long press. This both shows the context menu and the handle. Tapping doesn't. Imho, there isn't a purpose of the handle when the textbox is empty, as no selection can occur, and context menu will still show with long press |
In Samsung OneUI this is what I see: Single tap: Tap once, wait and tap again: Edit: And a purpose of this might be strong user feedback in the UI where text input will occur. This is easier to see than a blinking cursor in some cases. I also expect that the selection handles and context menu are always shown together. We probably need to know what is done in iOS as well. |
Yeah. We need to check how iOS handles it |
On iOS:
Some apps (mostly, messengers) actually select all the text on second tap as well. But it seems to be a custom behavior. |
Flutter seems to use the android behavior(long press to show handle and menu) when using the material theme, and no showing when using cupertino(ios) |
Flutter matching the host OS behavior seems correct to me. That could definitely be debated though. |
So... the discussion was invalidated and we just merged as is? |
@robloo on both iOS and Android selection handle doesn't appear when input is focused. Only on second tap with a difference whether field is empty or not (Android will show the handle when empty, iOS will show the handle when there is some text). We need an issue to track that though. |
What does the pull request do?
When there's no text in a textbox, tapping it will not show the selection handles.
What is the current behavior?
Text selectors always show even when there's no text to select.
What is the updated/expected behavior with this PR?
How was the solution implemented (if it's not obvious)?
Checklist
Breaking changes
Obsoletions / Deprecations
Fixed issues
Fixes #15694