Skip to content

Commit

Permalink
fixed: click selecting does not work properly with word. (#995)
Browse files Browse the repository at this point in the history
  • Loading branch information
fxliang authored Nov 9, 2023
1 parent 085922d commit 46b0e20
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( bool* const nextPage, bool* const scrollNextPage)
Expand All @@ -449,7 +449,7 @@ void WeaselTSF::_HandleMousePageEvent( bool* const nextPage, bool* const scrollN
ke.keycode = *nextPage ? ibus::Page_Down : ibus::Page_Up;
}
m_client.ProcessKeyEvent(ke);
DoEditSession(0);
_UpdateComposition(_pEditSessionContext);
}

void WeaselTSF::_HandleMouseHoverEvent(const size_t index)
Expand All @@ -468,7 +468,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 46b0e20

Please sign in to comment.