mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 09:31:34 +00:00
Queue the calls to GodotLib.key when Android virtual done is pressed
This commit is contained in:
parent
009aa63a57
commit
2bd3cc0e16
1 changed files with 5 additions and 4 deletions
|
|
@ -144,10 +144,11 @@ public class GodotTextInputWrapper implements TextWatcher, OnEditorActionListene
|
||||||
|
|
||||||
if (pActionID == EditorInfo.IME_ACTION_DONE) {
|
if (pActionID == EditorInfo.IME_ACTION_DONE) {
|
||||||
// Enter key has been pressed
|
// Enter key has been pressed
|
||||||
GodotLib.key(KeyEvent.KEYCODE_ENTER, KeyEvent.KEYCODE_ENTER, 0, true);
|
mView.queueEvent(() -> {
|
||||||
GodotLib.key(KeyEvent.KEYCODE_ENTER, KeyEvent.KEYCODE_ENTER, 0, false);
|
GodotLib.key(KeyEvent.KEYCODE_ENTER, KeyEvent.KEYCODE_ENTER, 0, true);
|
||||||
|
GodotLib.key(KeyEvent.KEYCODE_ENTER, KeyEvent.KEYCODE_ENTER, 0, false);
|
||||||
this.mView.requestFocus();
|
});
|
||||||
|
mView.requestFocus();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue