It doesn't have a built in condition, but you could make your own. Add a boolean instance variable to the textbox named focused then just do:
-Left Mouse Button Clicked
- Mouse is overlapping textbox
-> set textbox focused to true
- Else
-> set textbox focused to false