Only call doFocus and doBlur if a focus change has actually occurred.