mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1234120 part.1 IMEHandler should request all notifications which are requested by either IMMHander or TSFTextStore when IMM is available in TSF mode r=m_kato
This commit is contained in:
parent
563e7c94aa
commit
2cb5ab63e0
@ -71,6 +71,11 @@ struct nsIMEUpdatePreference final
|
||||
{
|
||||
}
|
||||
|
||||
nsIMEUpdatePreference operator|(const nsIMEUpdatePreference& aOther) const
|
||||
{
|
||||
return nsIMEUpdatePreference(aOther.mWantUpdates | mWantUpdates);
|
||||
}
|
||||
|
||||
void DontNotifyChangesCausedByComposition()
|
||||
{
|
||||
mWantUpdates &= ~DEFAULT_CONDITIONS_OF_NOTIFYING_CHANGES;
|
||||
|
@ -334,7 +334,16 @@ IMEHandler::GetUpdatePreference()
|
||||
|
||||
#ifdef NS_ENABLE_TSF
|
||||
if (IsTSFAvailable()) {
|
||||
return TSFTextStore::GetIMEUpdatePreference();
|
||||
if (!sIsIMMEnabled) {
|
||||
return TSFTextStore::GetIMEUpdatePreference();
|
||||
}
|
||||
// Even if TSF is available, the active IME may be an IMM-IME.
|
||||
// Unfortunately, changing the result of GetUpdatePreference() while an
|
||||
// editor has focus isn't supported by IMEContentObserver nor
|
||||
// ContentCacheInParent. Therefore, we need to request whole notifications
|
||||
// which are necessary either IMMHandler or TSFTextStore.
|
||||
return IMMHandler::GetIMEUpdatePreference() |
|
||||
TSFTextStore::GetIMEUpdatePreference();
|
||||
}
|
||||
#endif //NS_ENABLE_TSF
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user