From 19c144c101feff89396d0848fe5b8afa51269004 Mon Sep 17 00:00:00 2001 From: Sungmin Kwak Date: Thu, 26 Jan 2017 15:21:45 +0900 Subject: [PATCH] Fix URL layout issue in remote input #2 Delete all surrounding texts before commit string when URL layout Change-Id: I6d3e7f77c0b12de8d3d28d0251ff982c988faf69 --- ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp b/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp index f6a56f8..5acf914 100644 --- a/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp +++ b/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp @@ -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); } -- 2.7.4