Fix Shift + Left/Right key behavior 20/165220/10
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Wed, 27 Dec 2017 06:05:20 +0000 (15:05 +0900)
committerVíctor Cebollada <v.cebollada@samsung.com>
Wed, 10 Jan 2018 13:53:06 +0000 (13:53 +0000)
commit2978ecd6b3c5998f5302ecce780a6b4685ad5b99
treea6f41f0edccd9607cf37dfb6aaf44cccb8b401d2
parent495443c24fb1a97b177a6cf8a4ae81ca7de47a74
Fix Shift + Left/Right key behavior

- When the cursor was at the end of the text, the text selection couldn't release again by keyboard.
  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.
- When the text is selected by using Shift + Arrow keys or by tapping, if press Left or Right
  arrow keys, the cursor should be at the beginning or the end of the selected text (depending
  on whether it is the left or the right arrow key that is pressed).

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/decorator/text-decorator.cpp
dali-toolkit/internal/text/decorator/text-decorator.h
dali-toolkit/internal/text/text-controller-impl.cpp
dali-toolkit/internal/text/text-controller.cpp