* The highlight box is not created when the text edited
is in the pre-edit state and the user does a long press
on top of the pre-edited word.
The issue is fixed reseting the update-cursor flag to
false.
Change-Id: I8100504bfeb6894ddfc99a9768e6492e076fd648
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
mEventData->mUpdateRightSelectionPosition = true;
mEventData->mUpdateHighlightBox = true;
+ // It may happen an IMF commit event arrives before the selection event
+ // if the IMF manager is in pre-edit state. The commit event will set the
+ // mEventData->mUpdateCursorPosition flag to true. If it's not set back
+ // to false, the highlight box won't be updated.
+ mEventData->mUpdateCursorPosition = false;
+
mEventData->mScrollAfterUpdatePosition = ( mEventData->mLeftSelectionPosition != mEventData->mRightSelectionPosition );
}
else