diff options
author | sanikoyes <sanikoyes@163.com> | 2014-03-13 18:31:30 +0800 |
---|---|---|
committer | sanikoyes <sanikoyes@163.com> | 2014-03-13 18:31:30 +0800 |
commit | 14bbdcb139b35e6d206df1ab3176d34245b72329 (patch) | |
tree | 554fd2d306e68b0b329e01aecbbb72d85fe8a794 /platform/android/java/src | |
parent | 51429bd8d6d2fed9636e1d252a5eb86567b846ec (diff) |
fix enter key
Diffstat (limited to 'platform/android/java/src')
-rw-r--r-- | platform/android/java/src/com/android/godot/input/GodotTextInputWrapper.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/platform/android/java/src/com/android/godot/input/GodotTextInputWrapper.java b/platform/android/java/src/com/android/godot/input/GodotTextInputWrapper.java index b003dc2376..537fa6aa76 100644 --- a/platform/android/java/src/com/android/godot/input/GodotTextInputWrapper.java +++ b/platform/android/java/src/com/android/godot/input/GodotTextInputWrapper.java @@ -65,8 +65,8 @@ public class GodotTextInputWrapper implements TextWatcher, OnEditorActionListene final String insertText = s.subSequence(this.mText.length(), s.length()).toString(); for(int i = 0; i < insertText.length(); i++) { int ch = insertText.codePointAt(i); - GodotLib.key(0, ch, false); GodotLib.key(0, ch, true); + GodotLib.key(0, ch, false); } /* if (BuildConfig.DEBUG) { @@ -75,8 +75,8 @@ public class GodotTextInputWrapper implements TextWatcher, OnEditorActionListene */ } else { for (; nModified < 0; ++nModified) { - GodotLib.key(KeyEvent.KEYCODE_DEL, 0, false); GodotLib.key(KeyEvent.KEYCODE_DEL, 0, true); + GodotLib.key(KeyEvent.KEYCODE_DEL, 0, false); /* if (BuildConfig.DEBUG) { Log.d(TAG, "deleteBackward"); @@ -107,8 +107,8 @@ public class GodotTextInputWrapper implements TextWatcher, OnEditorActionListene if (this.mEdit == pTextView && this.isFullScreenEdit()) { // user press the action button, delete all old text and insert new text for (int i = this.mOriginText.length(); i > 0; i--) { - GodotLib.key(KeyEvent.KEYCODE_DEL, 0, false); GodotLib.key(KeyEvent.KEYCODE_DEL, 0, true); + GodotLib.key(KeyEvent.KEYCODE_DEL, 0, false); /* if (BuildConfig.DEBUG) { Log.d(TAG, "deleteBackward"); @@ -128,8 +128,8 @@ public class GodotTextInputWrapper implements TextWatcher, OnEditorActionListene for(int i = 0; i < text.length(); i++) { int ch = text.codePointAt(i); - GodotLib.key(0, ch, false); GodotLib.key(0, ch, true); + GodotLib.key(0, ch, false); } /* if (BuildConfig.DEBUG) { |