Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit d63f9e6

Browse files
authored
Merge pull request #126 from UnityTech/textselection
fix keyboard show bug on sdk28
2 parents 7dd5b30 + e7aafd3 commit d63f9e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Runtime/Plugins/platform/android/editing/TextInputPlugin.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public static TextInputPlugin getInstance() {
4242
public TextInputPlugin() {
4343
ViewGroup contentView = (ViewGroup)UnityPlayer.currentActivity.findViewById(android.R.id.content);
4444
mView = new TextInputView(UnityPlayer.currentActivity);
45+
mView.requestFocus();
4546
contentView.addView(mView, 0, 0);
4647
mImm = (InputMethodManager) mView.getContext().getSystemService(
4748
Context.INPUT_METHOD_SERVICE);

0 commit comments

Comments
 (0)