Bug 874011: change auto-correct language and suggestions when user switches keyboards

Don't switch keyboards if the menu is shown but the user selects nothing
Merge pull request #10620 from davidflanagan/bug874011

Bug 874011: change auto-correct language and suggestions when user switches keyboards r=mcirlanaru