Reset IMF context on focus.
authorKarol Furmaniak <k.furmaniak@samsung.com>
Fri, 13 Jun 2014 23:03:51 +0000 (16:03 -0700)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
[Problem]: Selecting text while composing text cause that text disappears.
[Cause]: Composed text is not canceled while selecting text in input.
[Solution]: Add canceling composition after focusing input text.

Issue: CBBROWSER-248, CBBROWSER-249

Change-Id: I89b2a7f3d9d8ce450ec666fa7548126fcf977a1f

tizen_src/impl/browser/renderer_host/im_context_efl.cc

index afd3b3f..764b7ce 100644 (file)
@@ -288,6 +288,7 @@ void IMContextEfl::UpdateCaretBounds(const gfx::Rect& caret_bounds) {
 }
 
 void IMContextEfl::OnFocusIn() {
+  CancelComposition();
 
   ClearQueues();
   view_->ClearQueues();