[3.0] Fix for text-controller. 40/119040/1
authorVictor Cebollada <v.cebollada@samsung.com>
Wed, 15 Mar 2017 07:50:37 +0000 (07:50 +0000)
committerVictor Cebollada <v.cebollada@samsung.com>
Wed, 15 Mar 2017 08:18:46 +0000 (08:18 +0000)
commitde592bd19d695bb48ef81b42205707786a718037
tree24b48be89d185a8328c91a4ace955d59e5e49e6b
parent49f45ce35d098c877649bd266790cd9814478d0c
[3.0] Fix for text-controller.

* The text disappears if the predictive text is disabled
  and a long press is done over a word.

  The problem is that in this use case a key event with
  no key code arrives, the text-controller calls the
  InsertText() method which clears the selected text.

  The fix is do nothing when this keycode arrives.

Change-Id: I23e96691fe45858165ee8fbb8695924a96a9941a
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
automated-tests/src/dali-toolkit/utc-Dali-TextEditor.cpp
automated-tests/src/dali-toolkit/utc-Dali-TextField.cpp
dali-toolkit/internal/text/text-controller.cpp