Change autocapital status when changing language 39/183939/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 12 Jul 2018 10:44:44 +0000 (19:44 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 12 Jul 2018 10:44:44 +0000 (19:44 +0900)
Change-Id: I0dbe5d6cd46ebd2cff72ddd18f7d8cbc0e35230c
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
ism/extras/wayland_immodule/wayland_imcontext.c

index 076c0cd..07122b0 100644 (file)
@@ -144,6 +144,8 @@ static Eina_Bool             _preedit_cursor_changed      = EINA_FALSE;
 static Input_Language        input_lang                   = INPUT_LANG_OTHER;
 static Evas_Coord            g_scr_w = 0, g_scr_h = 0;
 
+static void set_autocapital (Ecore_IMF_Context *ctx);
+
 static Eina_Bool g_key_rate_checked = EINA_FALSE, g_focused = EINA_FALSE;
 static double g_original_key_rate = 0.0, g_original_key_delay = 0.0, g_desired_key_rate = 0.0;
 //
@@ -397,6 +399,9 @@ set_input_language (const char *input_lang_str)
             break;
         }
     }
+
+    if (_focused_ctx)
+        set_autocapital (_focused_ctx);
 }
 
 static void autoperiod_allow_changed_cb (keynode_t *key, void* data)