Merge pull request #13179 from mpizza/Bug_932257_keyboard_not_hidden

Bug 932257 - [keyboard] previous InputMethod will not disappear while sw.... r=rudyl.
(cherry picked from commit d59c9446595eba2677fdcb363b2b42ae52ee0b12)
Merge pull request #13274 from mpizza/Bug_932257_v1.2

Merge pull request #13179 from mpizza/Bug_932257_keyboard_not_hidden. r=rudyl.