[4.0] Fix Shift + Left/Right key behavior 06/165306/2
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Wed, 27 Dec 2017 06:05:20 +0000 (15:05 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Thu, 28 Dec 2017 07:40:17 +0000 (16:40 +0900)
commitfa9addfeb4da77aba9d07174f220787262156167
tree8b8e55fbf2725fb978a8d783c10942970400fc3c
parentc4fb4e6b720334c64eae943d2b9bf1c36868185d
[4.0] Fix Shift + Left/Right key behavior

- When the cursor was at the end of the text, the text selection couldn't release again.
  Fixed to make deselection enabled wherever the cursor is.
- If Left selection handle is at the same position as Right selection handle,
  need to remove Highlights box between them.
- When all text is being selected using Shift + Arrow key and then only Arrow key is pressed,
  1. the text selection is released,
  2. the event state changes to 'EDITING' mode, and
  3. mPrimaryCursorPosition, mLeftSelectionPosition, and mRightSelectionPosition
     should be at the same position.

Change-Id: I0d7869c0231c52296e37a3268dffe3e707de8cbd
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
automated-tests/src/dali-toolkit/utc-Dali-TextEditor.cpp
dali-toolkit/internal/text/text-controller-impl.cpp
dali-toolkit/internal/text/text-controller.cpp