From dbcfc912ccededec43e558a69618ca7347fa0c97 Mon Sep 17 00:00:00 2001 From: InHong Han Date: Tue, 4 Sep 2018 14:16:56 +0900 Subject: [PATCH] Fix issue that IME restarts automatically when the focus is changed Change-Id: I4d51dc056e3c13efeeb140cb83f605dc4dfd5bb0 --- ism/extras/efl_panel/isf_panel_efl.cpp | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/ism/extras/efl_panel/isf_panel_efl.cpp b/ism/extras/efl_panel/isf_panel_efl.cpp index 9a156bf..aba7af4 100644 --- a/ism/extras/efl_panel/isf_panel_efl.cpp +++ b/ism/extras/efl_panel/isf_panel_efl.cpp @@ -6513,18 +6513,15 @@ static void slot_stop_default_ise (void) { SCIM_DEBUG_MAIN (3) << __FUNCTION__ << "...\n"; - if (_soft_keyboard_launched) { - if (_launch_ise_on_request && _auto_destroy_ise) { - String uuid = _info_manager->get_current_helper_uuid (); - - if (uuid.length () > 0) { - _info_manager->hide_helper (uuid); - _info_manager->stop_helper (uuid); - _soft_keyboard_launched = false; - LOGD ("stop helper (%s)", uuid.c_str ()); - } + if (_launch_ise_on_request && _auto_destroy_ise && _soft_keyboard_launched) { + String uuid = _info_manager->get_current_helper_uuid (); + + if (uuid.length () > 0) { + _info_manager->hide_helper (uuid); + _info_manager->stop_helper (uuid); + _soft_keyboard_launched = false; + LOGD ("stop helper (%s)", uuid.c_str ()); } - _soft_keyboard_launched = false; } } -- 2.7.4