LLK/scratch-html5 — pull request #55 by prokls (2014-03-21 22:09:47+00:00)
Title: Check focus using document.activeElement

This provides a more stable test for the current focus. It does not work always (this is a karma issue), but much better than jQuery's .is method.