#1702,Android soft keyboard fails to pass all input, by Jonathan Dearborn
authorGabriel Jacobo <gabomdq@gmail.com>
Sat, 26 Jan 2013 12:31:55 -0300
changeset 6824 436b5b8a5b98
parent 6823 e9d312d26979
child 6825 a9c669052fa2
#1702,Android soft keyboard fails to pass all input, by Jonathan Dearborn
android-project/src/org/libsdl/app/SDLActivity.java
--- a/android-project/src/org/libsdl/app/SDLActivity.java	Fri Jan 25 14:25:19 2013 -0800
+++ b/android-project/src/org/libsdl/app/SDLActivity.java	Sat Jan 26 12:31:55 2013 -0300
@@ -709,7 +709,9 @@
          */
         int keyCode = event.getKeyCode();
         if (event.getAction() == KeyEvent.ACTION_DOWN) {
-
+            if (event.isPrintingKey()) {
+                commitText(String.valueOf((char) event.getUnicodeChar()), 1);
+            }
             SDLActivity.onNativeKeyDown(keyCode);
             return true;
         } else if (event.getAction() == KeyEvent.ACTION_UP) {