Skip to content

Commit

Permalink
fix: composition not aborted when WeaselTSF::OnSetFocus(ITfDocumentMg…
Browse files Browse the repository at this point in the history
…r* pDocMgrFocus, ITfDocumentMgr* pDocMgrPrevFocus) called
  • Loading branch information
fxliang committed Apr 11, 2024
1 parent 9e059be commit 9f9ec5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions WeaselTSF/ThreadMgrEventSink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ STDAPI WeaselTSF::OnSetFocus(ITfDocumentMgr* pDocMgrFocus,
if ((nullptr != pTfContext) &&
SUCCEEDED(pTfContext->GetDocumentMgr(&pCandidateListDocumentMgr))) {
if (pCandidateListDocumentMgr != pDocMgrFocus) {
_AbortComposition(true);
_HideUI();
} else {
_ShowUI();
Expand Down

0 comments on commit 9f9ec5d

Please sign in to comment.