projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(TextController) Reformatted to reduce LOC
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
text
/
text-selection-handle-controller.cpp
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
(file)
--- 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))
{
if(characterHit || (Controller::NoTextTap::HIGHLIGHT == action))
{
+ uint32_t oldStart = eventData->mLeftSelectionPosition;
+ uint32_t oldEnd = eventData->mRightSelectionPosition;
+
impl.ChangeState(EventData::SELECTING);
eventData->mLeftSelectionPosition = selectionStart;
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);
// 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)
{
}
else if(Controller::NoTextTap::SHOW_SELECTION_POPUP == action)
{