Merge pull request #14698 from RudyLu/keyboard/Bug950573-keyboard_app_in...

...it_flow

Bug 950573 - Built-in Keyboard app could not input keys after it resumed...
r=timdream, gary(cherry picked from commit 5376e75091d1347b8df6abb493d91ed8d7dce185)