Make text in text inputs selectable

Differential Revision: D2535762

fb-gh-sync-id: 49eaf403195fd210a87fe4babf266ee4b29b7ae8
This commit is contained in:
Andrei Coman 2015-10-13 02:19:37 -07:00 committed by facebook-github-bot-7
parent 42e9189b77
commit c456accbed
1 changed files with 5 additions and 0 deletions

View File

@ -105,6 +105,11 @@ public class ReactEditText extends EditText {
@Override
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) {
return false;
}