Bug fix: focus and blur events weren't called properly.

Scenario: the fake input element has focus.
Clicking on the container results in a 'blur' event, but the click callback
called 'focus' which triggered the 'focus' event.
Merge branch 'master' into gh-pages