fix wrong behaviour of SelectNone() 82/263082/1
authorBowon Ryu <bowon.ryu@samsung.com>
Wed, 25 Aug 2021 11:12:04 +0000 (20:12 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Thu, 26 Aug 2021 02:49:28 +0000 (11:49 +0900)
commitc77c595b92d6c39b65515910480db935ab960a0c
tree9a73f2772dfd657023c65119a0f3294e940115b5
parentf5d6eddacdd05840b7024b26d3b184a652cfed11
fix wrong behaviour of SelectNone()

1. It is wrong behaviour for the cursor position to be 0 when selection is canceled.
Keeping the previous cursor position is the proper behavior.

2. SelectNone() only works if selection is enabled.
In this case, if selection is canceled, EDITING state is more appropriate than INACTIVE.
In INACTIVE, it is difficult to continue editing work, such as the cursor being deactivated.

Change-Id: I0f5f678b3ea205bc334ca9d5cd6e7626f37d8d87
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
dali-toolkit/internal/text/text-controller-impl-event-handler.cpp