fix wrong behaviour of SelectWholeText() 53/261153/6
authorBowon Ryu <bowon.ryu@samsung.com>
Mon, 12 Jul 2021 10:56:15 +0000 (19:56 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Thu, 5 Aug 2021 04:44:00 +0000 (13:44 +0900)
commit2a7fa48bf8e3808822c354420b2cf273e9a493bd
treea13c999c8220e33cf500940f614863ca7674980e
parent924b0441302cfe73dbb2b2a991017be4826e2b2b
fix wrong behaviour of SelectWholeText()

When there are multiple text controls,
there is a problem that the selection is keeped even if the text control loses focus
due to another text control's SelectWholeText().

This patch prevents wrong selection updates via flags.

// example
DevelTextField::SelectWholeText(field1);
DevelTextField::SelectWholeText(field2);
DevelTextField::SelectWholeText(field3);
DevelTextField::SelectWholeText(field4);

In the case of above example, all TextFields display a selection.

Change-Id: I96f87d0b12e4a91493831ca55e0f8b662391456e
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
automated-tests/src/dali-toolkit-internal/utc-Dali-Text-Controller.cpp
dali-toolkit/internal/text/text-controller-event-handler.cpp
dali-toolkit/internal/text/text-controller-impl-event-handler.cpp