Skip to content

Commit

Permalink
fixed: click selecting does not work properly with word.
Browse files Browse the repository at this point in the history
  • Loading branch information
fxliang committed Sep 5, 2023
1 parent db79168 commit 6b6c9bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions WeaselTSF/CandidateList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ void WeaselTSF::_SelectCandidateOnCurrentPage(size_t index)
m_client.SelectCandidateOnCurrentPage(index);
// fake a emptyp presskey to get data back and DoEditSession
m_client.ProcessKeyEvent(0);
DoEditSession(0);
_UpdateComposition(_pEditSessionContext);
}

void WeaselTSF::_HandleMousePageEvent(const bool nextPage)
Expand All @@ -444,7 +444,7 @@ void WeaselTSF::_HandleMousePageEvent(const bool nextPage)
}
}
m_client.ProcessKeyEvent(ke);
DoEditSession(0);
_UpdateComposition(_pEditSessionContext);
}

void WeaselTSF::_HandleMouseHoverEvent(const size_t index)
Expand All @@ -463,7 +463,7 @@ void WeaselTSF::_HandleMouseHoverEvent(const size_t index)
{
_cand->SetSelection(current_select + inc);
m_client.ProcessKeyEvent(ke);
DoEditSession(0);
_UpdateComposition(_pEditSessionContext);
}
}
}
Expand Down

0 comments on commit 6b6c9bd

Please sign in to comment.