Skip to content
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

[Bug] MacCatalyst SelectAllTextBehavior on Editor #432

Closed
pictos opened this issue Jun 1, 2022 · 2 comments · Fixed by #1402
Closed

[Bug] MacCatalyst SelectAllTextBehavior on Editor #432

pictos opened this issue Jun 1, 2022 · 2 comments · Fixed by #1402
Labels
blocked bug Something isn't working help wanted This proposal has been approved and is ready to be implemented known-issue A limitation that we know that exists and we are investigating how to fix it

Comments

@pictos
Copy link
Member

pictos commented Jun 1, 2022

On MacCatalyst apps, when you focus on the (Maui)Editor control, the text doesn't show selected. It selects all the text as we want, but right after the system put the cursor in the place that the user did the click, more info in this issue

The plan is to discover a way to work around this behavior or find the correct way.

@pictos pictos added bug Something isn't working unverified known-issue A limitation that we know that exists and we are investigating how to fix it help wanted This proposal has been approved and is ready to be implemented and removed unverified labels Jun 1, 2022
@vhugogarcia
Copy link
Contributor

Hello @pictos and @brminnick ,

After reviewing this issue in-depth on my side. I found the following bits:

  • Per our friend Rolf at the xamarin-macios repository, this issue is from the Apple's MacCatalyst platform itself.
  • I have tried a few approaches trying to find a workaround for it, however, since the platform itself is automatically selecting/deselecting all text from the editor, it won't be possible for us to handle that.
  • Rolf from the xamarin-macios team mentioned this, which I tested and it works on those scenarios:

Another point is that if you tab into the text view, or right click it, then the entire text is selected.

  • I could not find any forum or insight of Apple plans to fix this issue of selecting/deselecting all in MacCatalyst.
  • I tried also to trigger the right-click event when the Maui editor is focused without luck, in an effort to simulate it so the text gets selected, however, I could not find how to do it.

Potential solutions/suggestions

  • Update the documentation with a special highlight note about MacCatalyst outlining that due to the platform limitations the select all text works when navigating with the tab into the text view or right click it. In the future, if a workaround is found we can certainly update it.

This is just my grain of salt.

Thank you!

@brminnick
Copy link
Collaborator

Love the idea of updating the docs! Could you open a PR for it on our docs repo?

After the Docs PR is open, I'm happy to close this issue. We can always re-surface it if/when something changes on macOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked bug Something isn't working help wanted This proposal has been approved and is ready to be implemented known-issue A limitation that we know that exists and we are investigating how to fix it
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants