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

Android input using Gboard default keyboard is broken #98

Open
hostilefork opened this issue Apr 13, 2022 · 0 comments
Open

Android input using Gboard default keyboard is broken #98

hostilefork opened this issue Apr 13, 2022 · 0 comments

Comments

@hostilefork
Copy link
Owner

hostilefork commented Apr 13, 2022

The element we are using is display: inline and contentEditable: true.

It seems that on inline display elements, the Google keyboard is mucking up the typing as it goes. This is a known issue among WYSIWYG editing attempts on Android:

ianstormtaylor/slate#725
https://docs.google.com/document/d/1Hex89Di-r-Wfpo1DLAtxpetoX588ziXVoNyC87Je3Xc/edit#

People ask for easy fixes but there do not seem to be any:

https://stackoverflow.com/q/68187400/
https://stackoverflow.com/questions/12243592/how-to-disable-suggestions-when-in-content-editable-webview-android

The problem relates to Gboard's sending of key messages. They don't want to send normal keyup/keydown and consider this as "won't fix":

https://bugs.chromium.org/p/chromium/issues/detail?id=809107

Also, contenteditable is known to be annoying and on Android it's worse:

https://discuss.prosemirror.net/t/contenteditable-on-android-is-the-absolute-worst/3810

The workarounds to try and allow this seem to be too much. It may just be that on Android, we force single-line input to be inline-block unless you have a supported keyboard (like Hacker keyboard) running.

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

1 participant