You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A workaround for this is to set editor.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD); so it is related to text composition. Maybe just in the editor events?
In this example I'm simply using Gboard to type. Haven't pressed the backspace key.
According to ducumentation for InputConnection#setComposingText:
Replace the currently composing text with the given text, and set the new cursor position. Any composing text set previously will be removed automatically.
sora-editor deletes the composing text first and inserts the new one.
Didn't know Android implements composition like that, but I guess it makes it simpler.
An easy workaround on the IDE side would be a single shot timer that checks is there was an insertion for example 20ms after a deletion.
Not exactly optimal, but it will get the job done when needed. However I don't think that is a good idea to be a "fix".
A workaround for this is to set
editor.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD);
so it is related to text composition. Maybe just in the editor events?In this example I'm simply using Gboard to type. Haven't pressed the backspace key.
Test code:
Output:
The text was updated successfully, but these errors were encountered: