зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1181714
nsTextStore should store previous focused document manager until new document manager actually gets focus r=m_kato
This commit is contained in:
Родитель
04543b0f55
Коммит
af7ad0b0ba
|
@ -4176,9 +4176,10 @@ nsTextStore::OnFocusChange(bool aGotFocus,
|
|||
return NS_ERROR_NOT_AVAILABLE;
|
||||
}
|
||||
|
||||
nsRefPtr<ITfDocumentMgr> prevFocusedDocumentMgr;
|
||||
|
||||
// If currently sEnableTextStore has focus, notifies TSF of losing focus.
|
||||
if (ThinksHavingFocus()) {
|
||||
nsRefPtr<ITfDocumentMgr> prevFocusedDocumentMgr;
|
||||
DebugOnly<HRESULT> hr =
|
||||
sThreadMgr->AssociateFocus(
|
||||
sEnabledTextStore->mWidget->GetWindowHandle(),
|
||||
|
|
Загрузка…
Ссылка в новой задаче