* Places the cursor after the last selected character
when the 'Copy' button in the text's selection popup
is pressed.
Change-Id: I77bf8a03eb5e80e37de93e2279c25ea53d93bc43
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
Vector<Character>::Iterator last = first + lengthOfSelectedText;
utf32Characters.Erase( first, last );
Vector<Character>::Iterator last = first + lengthOfSelectedText;
utf32Characters.Erase( first, last );
- // Scroll after delete.
+ // Will show the cursor at the first character of the selection.
mEventData->mPrimaryCursorPosition = handlesCrossed ? mEventData->mRightSelectionPosition : mEventData->mLeftSelectionPosition;
}
mEventData->mPrimaryCursorPosition = handlesCrossed ? mEventData->mRightSelectionPosition : mEventData->mLeftSelectionPosition;
}
+ else
+ {
+ // Will show the cursor at the last character of the selection.
+ mEventData->mPrimaryCursorPosition = handlesCrossed ? mEventData->mLeftSelectionPosition : mEventData->mRightSelectionPosition;
+ }
+
mEventData->mDecoratorUpdated = true;
}
}
mEventData->mDecoratorUpdated = true;
}
}
case Toolkit::TextSelectionPopup::COPY:
{
mImpl->SendSelectionToClipboard( false ); // Text not modified
case Toolkit::TextSelectionPopup::COPY:
{
mImpl->SendSelectionToClipboard( false ); // Text not modified
- mImpl->RequestRelayout(); // Handles, Selection Highlight, Popup
+
+ mImpl->mEventData->mUpdateCursorPosition = true;
+
+ mImpl->RequestRelayout(); // Cursor, Handles, Selection Highlight, Popup
break;
}
case Toolkit::TextSelectionPopup::PASTE:
break;
}
case Toolkit::TextSelectionPopup::PASTE: