Fix for long press. 53/48253/1
authorVictor Cebollada <v.cebollada@samsung.com>
Wed, 16 Sep 2015 14:50:23 +0000 (15:50 +0100)
committerVictor Cebollada <v.cebollada@samsung.com>
Wed, 16 Sep 2015 15:09:56 +0000 (16:09 +0100)
* If in pre-edit mode, the imf manager needs to be reset to commit the text.

Change-Id: Id012e471b9750d67430c99b93bff641ca8f47590
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
dali-toolkit/internal/text/text-controller.cpp

index 83c81a3..f9979df 100644 (file)
@@ -1611,6 +1611,9 @@ void Controller::LongPressEvent( Gesture::State state, float x, float y  )
       }
       else
       {
+        // Reset the imf manger to commit the pre-edit before selecting the text.
+        mImpl->ResetImfManager();
+
         SelectEvent( x, y, false );
       }
     }