From: taeyoon0.lee Date: Tue, 18 Aug 2015 13:17:31 +0000 (+0900) Subject: Fix for predictive text. X-Git-Tag: dali_1.1.1~14^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=a5fa9ef7e55f908aa95d0896af2b947f44fa0088;ds=sidebyside Fix for predictive text. * With Latin upper case characters a key event with key code 50 is sent. Then the pre-edit flag was cleared. Now this key event is ignored but the text controller doesn't know how to handle this event correctly. Change-Id: I7bdb9cd41056d18240789bd17cc5826c71a779f5 Signed-off-by: v.cebollada --- diff --git a/dali-toolkit/internal/text/text-controller.cpp b/dali-toolkit/internal/text/text-controller.cpp index 233e764..320a5e0 100644 --- a/dali-toolkit/internal/text/text-controller.cpp +++ b/dali-toolkit/internal/text/text-controller.cpp @@ -1160,6 +1160,13 @@ bool Controller::KeyEvent( const Dali::KeyEvent& keyEvent ) // Menu/Home key behaviour does not allow edit mode to resume like Power key // Avoids calling the InsertText() method which can delete selected text } + else if( Dali::DALI_KEY_SHIFT_LEFT == keyCode ) + { + // DALI_KEY_SHIFT_LEFT is the key code for the Left Shift. It's sent (by the imf?) when the predictive text is enabled + // and a character is typed after the type of a upper case latin character. + + // Do nothing. + } else { DALI_LOG_INFO( gLogFilter, Debug::Verbose, "Controller::KeyEvent %p keyString %s\n", this, keyString.c_str() );