Fix support for FocusEvent test