Add a hasFocus accessor for native fields.

Useful for VirtualKeyboardControllers that want to predicate their behavior on which field currently
has focus.