X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-selection-handle-controller.cpp;h=cf63deb1a10d353c692cb9929d44295fe493f86d;hp=b0825108fb7942309d37873eaad3b2056b2385ce;hb=00758f1301dd0bfbf6dc87659a6db9d0ba2c6816;hpb=14abad437f0a1737b07aead32134ebd37b8e4891;ds=sidebyside diff --git a/dali-toolkit/internal/text/text-selection-handle-controller.cpp b/dali-toolkit/internal/text/text-selection-handle-controller.cpp index b082510..cf63deb 100644 --- a/dali-toolkit/internal/text/text-selection-handle-controller.cpp +++ b/dali-toolkit/internal/text/text-selection-handle-controller.cpp @@ -491,6 +491,9 @@ void SelectionHandleController::Reposition(Controller::Impl& impl, float visualX if(characterHit || (Controller::NoTextTap::HIGHLIGHT == action)) { + uint32_t oldStart = eventData->mLeftSelectionPosition; + uint32_t oldEnd = eventData->mRightSelectionPosition; + impl.ChangeState(EventData::SELECTING); eventData->mLeftSelectionPosition = selectionStart; @@ -510,6 +513,11 @@ void SelectionHandleController::Reposition(Controller::Impl& impl, float visualX // Cursor to be positioned at end of selection so if selection interrupted and edit mode restarted the cursor will be at end of selection eventData->mPrimaryCursorPosition = std::max(eventData->mLeftSelectionPosition, eventData->mRightSelectionPosition); + + if(impl.mSelectableControlInterface != nullptr) + { + impl.mSelectableControlInterface->SelectionChanged(oldStart, oldEnd, eventData->mLeftSelectionPosition, eventData->mRightSelectionPosition); + } } else if(Controller::NoTextTap::SHOW_SELECTION_POPUP == action) {