зеркало из https://github.com/mozilla/gecko-dev.git
attmpt to fix bug #110828; disable all unicode input for OS < 9.0 (r=pink; sr=brendan)
This commit is contained in:
Родитель
ccfc6fbfd6
Коммит
4a76e7bb22
|
@ -60,11 +60,13 @@ void nsTSMStrategy::Init()
|
|||
err = Gestalt(gestaltTSMgrVersion, &version);
|
||||
if ((err == noErr) && (version >= gestaltTSMgr15))
|
||||
{
|
||||
gUseUnicodeForInputMethod = PR_TRUE;
|
||||
// only enable if OS 9.0 or greater; there is a bug
|
||||
// (in at least OS 8.6) that causes double input (Bug #106022)
|
||||
// see also bug #110828
|
||||
err = Gestalt(gestaltSystemVersion, &version);
|
||||
gUseUnicodeForKeyboard = (err == noErr) && (version >= 0x900);
|
||||
PRBool doEnable = (err == noErr) && (version >= 0x900);
|
||||
gUseUnicodeForKeyboard = doEnable;
|
||||
gUseUnicodeForInputMethod = doEnable;
|
||||
}
|
||||
#ifdef FORCE_USE_UNICODE_API
|
||||
gUseUnicodeForInputMethod = PR_TRUE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче