mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Android Embedding PR30: Make FlutterView focusable so that the keyboard can interact with it. (flutter/engine#8551)
This commit is contained in:
parent
dc2e268020
commit
4b8ea49e58
@ -170,6 +170,10 @@ public class FlutterView extends FrameLayout {
|
||||
addView(flutterTextureView);
|
||||
break;
|
||||
}
|
||||
|
||||
// FlutterView needs to be focusable so that the InputMethodManager can interact with it.
|
||||
setFocusable(true);
|
||||
setFocusableInTouchMode(true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user