Fix for text-controller. 39/119039/2
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 09:28:41 +0000 (09:28 +0000)
commit11ba5d111fecad79f948f180e7976a5a236a3da7
tree19fa67408e3c31a2830e8900fac592fff69d0ba6
parent0b6c587dbb2b7c52a832975bf742af70ba7c98b8
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