Improve update_cursor_position () 83/87083/1
authorHaifeng Deng <haifeng.deng@samsung.com>
Tue, 6 Sep 2016 08:24:11 +0000 (16:24 +0800)
committerHaifeng Deng <haifeng.deng@samsung.com>
Tue, 6 Sep 2016 08:25:50 +0000 (16:25 +0800)
Change-Id: I2d819fc7f117764ef488a7cc5fdbfb345b1c63c6
Signed-off-by: Haifeng Deng <haifeng.deng@samsung.com>
src/ise.cpp

index 2ed42f3..ca9a5d1 100644 (file)
@@ -1622,7 +1622,7 @@ ise_set_caps_mode(unsigned int mode)
 void
 ise_update_cursor_position(int position)
 {
-    if (g_ui) {
+    if (g_ui && g_keyboard_state.layout == ISE_LAYOUT_STYLE_URL) {
 #ifndef _TV
         if (position > 0) {
             g_ui->set_string_substitution("www.", ".com");