When selecting the Samsung keyboard as default keyboard on recent Samsung phones and tablets, trying to enter texts in a JUCE TextEditor will fail. It fails in different ways:
Although backspace usually works, tapping on a character does not show up until you press the Done button. Sometimes, pressing a button on the keyboard makes it press the button left to the button you are pressing. Furthermore, when using voice commands, only the first letter of the word that is spoken is entered in the TextEditor. I don’t really care about the last one, but the others make it unusable on Samsung devices.
When switching to the Google GBoard however, no such problems exist. When the Samsung keyboard goes in a mode that it doesn’t suggest text, it also works ok, so perhaps changing outAttrs.inputType = InputType.TYPE_NULL;
in ComponentPeerView.java
to InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS
might work.
EDIT: I did the change to ComponentPeerView.java, copied the file into my project and changed the cpp file to not take the bytecode and now it works on my S9. On the Tab S3, it didn’t work and I had to set it to
InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS | InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD