Make text in text inputs selectable
Differential Revision: D2535762 fb-gh-sync-id: 49eaf403195fd210a87fe4babf266ee4b29b7ae8
This commit is contained in:
parent
42e9189b77
commit
c456accbed
|
@ -105,6 +105,11 @@ public class ReactEditText extends EditText {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean requestFocus(int direction, Rect previouslyFocusedRect) {
|
public boolean requestFocus(int direction, Rect previouslyFocusedRect) {
|
||||||
|
// Always return true if we are already focused. This is used by android in certain places,
|
||||||
|
// such as text selection.
|
||||||
|
if (isFocused()) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (!mIsJSSettingFocus) {
|
if (!mIsJSSettingFocus) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue