isInFocus() becomes hasFocus()

Also uses this in a place I'd missed, which fixes TextBox.