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

Every Word Is Capitalized On Android Phone #18

Open
cdaven opened this issue May 31, 2022 · 3 comments
Open

Every Word Is Capitalized On Android Phone #18

cdaven opened this issue May 31, 2022 · 3 comments

Comments

@cdaven
Copy link

cdaven commented May 31, 2022

When I try the demo on my pretty new Android phone (with the Chrome browser), Every Word Is Capitalized. Maybe autocapitalize="word" is set somewhere?

@SmilyOrg
Copy link
Owner

Looks like it's the same on my phone as well. Unfortunately it seems like that's due to Monaco itself as it wasn't really built for mobile, which leaves us with limited options.

Maybe there's an override we could do in Monaco to resolve this specific issue 🤔

Alternatively we could make this plugin only enable itself on non-Mobile devices and fall back to the basic text editor on mobile. This seems to be how others often handle this based on the ticket above.

What do you think?

@cdaven
Copy link
Author

cdaven commented May 31, 2022

In that case, it would probably be much easier to fall back to another editor. Is it possible to fall back to another editor plugin, such as CodeMirror/CMPlus?

@SmilyOrg
Copy link
Owner

I think so, but I'm not sure exactly how. Maybe the existing fallback code would work for this too.

The big question is then when to fall back. An example given in that thread is e.g. tablets or phones with attached keyboards, that's a bit of a gray area. It seems like it's the best to pick a heuristic, then allow switching back and forth in the UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants