Fix URL layout issue in remote input #2 20/112120/1
authorSungmin Kwak <sungmin.kwak@samsung.com>
Thu, 26 Jan 2017 06:21:45 +0000 (15:21 +0900)
committerSungmin Kwak <sungmin.kwak@samsung.com>
Thu, 26 Jan 2017 06:21:45 +0000 (15:21 +0900)
Delete all surrounding texts before commit string when URL layout

Change-Id: I6d3e7f77c0b12de8d3d28d0251ff982c988faf69

ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp

index f6a56f8..5acf914 100644 (file)
@@ -2310,6 +2310,9 @@ panel_slot_commit_string (int context, const WideString &wstr, bool remote_mode)
                 return;
             }
             check_input_resource (ic, INPUT_RESOURCE_REMOTE);
+
+            if (ic->impl->panel_layout == ECORE_IMF_INPUT_PANEL_LAYOUT_URL)
+                wsc_context_delete_surrounding (ic, -ic->impl->cursor_pos, ic->impl->surrounding_text.length ());
         } else {
             check_input_resource (ic, INPUT_RESOURCE_LOCAL);
         }