зеркало из https://github.com/mozilla/gecko-dev.git
bug 88425
Force to end IMEComposition when user switches keyboard layout. /r=ftang;/sr=shaver
This commit is contained in:
Родитель
2dca78dc34
Коммит
3a79231670
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче