Check the keyString value. 70/200670/2
authorJoogab Yun <joogab.yun@samsung.com>
Thu, 28 Feb 2019 04:17:25 +0000 (13:17 +0900)
committerjoogab yun <joogab.yun@samsung.com>
Thu, 28 Feb 2019 04:30:18 +0000 (04:30 +0000)
commit0684a7d546a64e4dd4c75cd86b24f2377ef2c0df
tree83fed1b7b2451a37df540f5d00f776bed2543405
parent0070e9ca4e08996ac60bf9637e695b32ee72e713
Check the keyString value.

* A problem occurs because ClearPreEditFlag is called unnecessarily.
1. input 'A' on ime : case InputMethodContext::PRE_EDIT and text is 'A'
2. input key event : keyString is empty and called
mImpl->ClearEditFlag();
3. callback OnInputMethodContextEvent() : InputMethodContext::commit and
text is 'A'
4. then pre edit text is not removed. Because clearEditFlag was called.
5. so, we see 'AA', not 'A'

Change-Id: I1658ccc0679b763c04c1d13f1faf7e0f9d3ac2ea
dali-toolkit/internal/text/text-controller.cpp