Queue the calls to GodotLib.key when Android virtual done is pressed
This commit is contained in:
parent
c47b6f4b5c
commit
1856f16378
1 changed files with 4 additions and 3 deletions
|
@ -144,9 +144,10 @@ public class GodotTextInputWrapper implements TextWatcher, OnEditorActionListene
|
|||
|
||||
if (pActionID == EditorInfo.IME_ACTION_DONE) {
|
||||
// Enter key has been pressed
|
||||
mRenderView.queueOnRenderThread(() -> {
|
||||
GodotLib.key(KeyEvent.KEYCODE_ENTER, KeyEvent.KEYCODE_ENTER, 0, true);
|
||||
GodotLib.key(KeyEvent.KEYCODE_ENTER, KeyEvent.KEYCODE_ENTER, 0, false);
|
||||
|
||||
});
|
||||
mRenderView.getView().requestFocus();
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue