Check next focused element instead of relatedTarget for Firefox