зеркало из https://github.com/mozilla/pjs.git
bug 624163 - IME input does not work in rich editors with e10s r=dougt
This commit is contained in:
Родитель
c8b9f55356
Коммит
8041c1a27e
|
@ -527,6 +527,9 @@ TabParent::RecvGetIMEEnabled(PRUint32* aValue)
|
||||||
bool
|
bool
|
||||||
TabParent::RecvSetInputMode(const PRUint32& aValue, const nsString& aType, const nsString& aAction, const PRUint32& aReason)
|
TabParent::RecvSetInputMode(const PRUint32& aValue, const nsString& aType, const nsString& aAction, const PRUint32& aReason)
|
||||||
{
|
{
|
||||||
|
// mIMETabParent (which is actually static) tracks which if any TabParent has IMEFocus
|
||||||
|
// When the input mode is set to anything but IME_STATUS_NONE, mIMETabParent should be set to this
|
||||||
|
mIMETabParent = aValue & nsIContent::IME_STATUS_MASK_ENABLED ? this : nsnull;
|
||||||
nsCOMPtr<nsIWidget> widget = GetWidget();
|
nsCOMPtr<nsIWidget> widget = GetWidget();
|
||||||
if (!widget || !AllowContentIME())
|
if (!widget || !AllowContentIME())
|
||||||
return true;
|
return true;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче