Fix hasFocus state on Form