mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Bug 1181714
nsTextStore should store previous focused document manager until new document manager actually gets focus r=m_kato
This commit is contained in:
parent
04543b0f55
commit
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(),
|
||||
|
Loading…
Reference in New Issue
Block a user