Bug 994495 - Solve various problems of Korean keyboard under FxOS 1.4+

https://bugzilla.mozilla.org/show_bug.cgi?id=994495
This pull request is for landing v1.4.
The pull request for master branch is https://github.com/mozilla-b2g/gaia/pull/18145