Skip to content

Commit

Permalink
feat(android): add Ti.UI.TextArea 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 4cc8dec commit 78357ec
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,14 @@ public String getApiName()
{
return "Ti.UI.TextArea";
}

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

0 comments on commit 78357ec

Please sign in to comment.