Browse Source

Re-enable IME text input on Android

In my testing, this results in text edit events followed by text input events. Any ASCII characters will generate scancode events based on a hypothetical US keyboard layout.

Fixes https://github.com/libsdl-org/SDL/issues/3377
Sam Lantinga 2 years ago
parent
commit
37a517dc36
1 changed files with 1 additions and 1 deletions
  1. 1 1
      android-project/app/src/main/java/org/libsdl/app/SDLActivity.java

+ 1 - 1
android-project/app/src/main/java/org/libsdl/app/SDLActivity.java

@@ -2314,7 +2314,7 @@ class DummyEdit extends View implements View.OnKeyListener {
     public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
         ic = new SDLInputConnection(this, true);
 
-        outAttrs.inputType = InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD;
+        outAttrs.inputType = InputType.TYPE_CLASS_TEXT;
         outAttrs.imeOptions = EditorInfo.IME_FLAG_NO_EXTRACT_UI
                 | EditorInfo.IME_FLAG_NO_FULLSCREEN /* API 11 */;