Merge commit '49b5ee23ba5b4784fda237dcec15f7f3181e1b86' * commit '49b5ee23ba5b4784fda237dcec15f7f3181e1b86': Fix possible race condition when switching keyboards while there are pending messages.
Merge commit '49b5ee23ba5b4784fda237dcec15f7f3181e1b86' * commit '49b5ee23ba5b4784fda237dcec15f7f3181e1b86': Fix possible race condition when switching keyboards while there are pending messages.