Bug 889347 - SelectionChange event doesn't bubble through in mozKeyboard

Fix for [#889347](https://bugzilla.mozilla.org/show_bug.cgi?id=889347). This backports the changes in mozilla-central into the keyboard helper in Gaia.