uint32_t lengthOfSelectedText = mEventData->mRightSelectionPosition - startOfSelectedText;
// Validate the start and end selection points
uint32_t lengthOfSelectedText = mEventData->mRightSelectionPosition - startOfSelectedText;
// Validate the start and end selection points