More robust way to determine the current focus and whether the focused status of the 3D view has changed.