Fix number keys changing keyboard state

This commit is contained in:
SerpentSpirale
2021-09-02 17:20:56 +02:00
parent af1a05003a
commit d8a8a94008

View File

@@ -125,7 +125,8 @@ public class TouchCharInput extends androidx.appcompat.widget.AppCompatEditText
public void clear(){
isDoingInternalChanges = true;
//Braille space, doesn't trigger keyboard auto-complete
setText("\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800");
//replacing directly the text without though setText avoids notifying changes
getText().replace(0, getText().length(),"\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800\u2800");
setSelection(5);
}