Fix issue that IME restarts automatically when the focus is changed 41/188341/5
authorInHong Han <inhong1.han@samsung.com>
Tue, 4 Sep 2018 05:16:56 +0000 (14:16 +0900)
committerInHong Han <inhong1.han@samsung.com>
Tue, 4 Sep 2018 10:14:24 +0000 (10:14 +0000)
Change-Id: I4d51dc056e3c13efeeb140cb83f605dc4dfd5bb0

ism/extras/efl_panel/isf_panel_efl.cpp

index 9a156bf..aba7af4 100644 (file)
@@ -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;
     }
 }