Fix for predictive text. 29/46329/4
authortaeyoon0.lee <taeyoon0.lee@samsung.com>
Tue, 18 Aug 2015 13:17:31 +0000 (22:17 +0900)
committerVíctor Cebollada <v.cebollada@samsung.com>
Thu, 20 Aug 2015 08:34:17 +0000 (01:34 -0700)
* 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 <v.cebollada@samsung.com>
dali-toolkit/internal/text/text-controller.cpp

index 233e764..320a5e0 100644 (file)
@@ -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
     }
       // 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() );
     else
     {
       DALI_LOG_INFO( gLogFilter, Debug::Verbose, "Controller::KeyEvent %p keyString %s\n", this, keyString.c_str() );