Change the state of EventData to EDITING in RemoveText 92/221492/1
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Thu, 2 Jan 2020 10:00:02 +0000 (19:00 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Fri, 3 Jan 2020 04:48:33 +0000 (13:48 +0900)
commitf7ea20e4f10cf11c334492f92e140770d9c8d22f
tree6fa74079ce9b22443ea9814d701001ccf06f46b6
parentbb790067ec742ecb383ee88c417f7109a2299492
Change the state of EventData to EDITING in RemoveText

- Currently, in certain cases, even if Backspace key is pressed
 after cursor blink is stopped, cursor blink does not restart and
 the cursor is also not shown.

- It means, after EventData is changed to INACTIVE state due to
 KeyboardFocusLostEvent(), StopCursorBlink() is called.
  After that, in RemoveText(), which is called in Backspace key,
 EventData cannot be changed to EDITING state and StartCursorBlink() is not called.
  On the other hand, when the character commits or the arrow keys are pressed,
 EventData is changed to EDITING state and the cursor is displayed on screen.

- So, added 'ChangeState( EventData::EDITING )' when the state is INACTIVE.

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