Skip to content

Commit

Permalink
feat(android): add Ti.UI.TextField focused property
Browse files Browse the repository at this point in the history
Fixes TIMOB-27711
  • Loading branch information
sgtcoolguy committed Jun 22, 2020
1 parent 78357ec commit 7b53d67
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,14 @@ public String getApiName()
{
return "Ti.UI.TextField";
}

@Kroll.getProperty(name = "focused")
public boolean isFocused()
{
TiUIView v = peekView();
if (v != null) {
return v.isFocused();
}
return false;
}
}

0 comments on commit 7b53d67

Please sign in to comment.