I'm reviewing some code for a form, and see the following :
void SomeTextBox_Enter(object sender, EventArgs e)
{
InputLanguage.CurrentInputLanguage = GetLocalLanguage(DataModel.Country);
SomeTextBox.ImeMode = ImeMode.On;
}
where GetLocalLanguage()
goes through InputLanguage.InstalledInputLanguages
and returns the country-specific one if applicable.
What is the purpose of this code? Why would we want to change the Input Language?