Check next focused element instead of relatedTarget for Firefox
Merge branch 'master' into gh-pages