Force to end IMEComposition when user switches keyboard layout.
/r=ftang;/sr=shaver
This commit is contained in:
yokoyama%netscape.com 2001-09-29 00:15:21 +00:00
Родитель 2dca78dc34
Коммит 3a79231670
1 изменённых файлов: 13 добавлений и 8 удалений

Просмотреть файл

@ -4965,15 +4965,20 @@ BOOL nsWindow::OnInputLangChange(HKL aHKL, LRESULT *oRetValue)
printf("OnInputLanguageChange\n");
#endif
if(gKeyboardLayout != aHKL)
{
gKeyboardLayout = aHKL;
*oRetValue = LangIDToCP((WORD)((DWORD)gKeyboardLayout & 0x0FFFF),
gCurrentKeyboardCP);
}
if(gKeyboardLayout != aHKL)
{
gKeyboardLayout = aHKL;
*oRetValue = LangIDToCP((WORD)((DWORD)gKeyboardLayout & 0x0FFFF),
gCurrentKeyboardCP);
}
ResetInputState();
return PR_FALSE; // always pass to child window
ResetInputState();
if (mIMEIsComposing) {
HandleEndComposition();
}
return PR_FALSE; // always pass to child window
}
//==========================================================================
BOOL nsWindow::OnIMEChar(BYTE aByte1, BYTE aByte2, LPARAM aKeyState)