When calling OnSelectAllEvent, OnSelectRangeEvent when placeholder is activated,
the right position of selection refers to the length of the placeholder text.
This causes an incorrect cursor position to be set and causes a crash.
Change-Id: I98efb9b2834c6ea5034398dc1790be6d6d6c26e4
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
if(impl.mEventData)
{
EventData& eventData = *impl.mEventData;
- if(eventData.mSelectionEnabled && eventData.mState != EventData::INACTIVE)
+ if(eventData.mSelectionEnabled && eventData.mState != EventData::INACTIVE && !eventData.mIsShowingPlaceholderText)
{
ModelPtr& model = impl.mModel;
const Vector2& scrollPosition = model->mScrollPosition;
void ControllerImplEventHandler::OnSelectRangeEvent(Controller::Impl& impl, const Event& event)
{
- if(impl.mEventData && impl.mEventData->mSelectionEnabled && impl.mEventData->mState != EventData::INACTIVE)
+ if(impl.mEventData && impl.mEventData->mSelectionEnabled && impl.mEventData->mState != EventData::INACTIVE && !impl.mEventData->mIsShowingPlaceholderText)
{
ModelPtr& model = impl.mModel;
const Vector2& scrollPosition = model->mScrollPosition;