string currentLanguage = languageManager.GetCurrentLanguage();
IseConfig.Instance.ReadIseConfig();
LanguageInfo languageinfo = languageManager.GetLanguageInfo(iseConfig.SelectedLanguage);
-
- IntPtr inputModePtr;
- SclNuiGetInputMode(out inputModePtr);
- string inputMode = Marshal.PtrToStringAnsi(inputModePtr);
bool resetInputMode = false;
SclNui.SetInputMode(languageinfo.SelectedInputMode);
KeyboardState.Instance.VisibleState = true;
- if (keyboardState.NeedReset || !iseConfig.SelectedLanguage.Equals(currentLanguage))
+ if (keyboardState.Context != ic || keyboardState.NeedReset || !iseConfig.SelectedLanguage.Equals(currentLanguage))
resetInputMode = true;
keyboardState.NeedReset = false;