diff options
author | Sungmin Kwak <sungmin.kwak@samsung.com> | 2019-06-19 14:31:51 +0900 |
---|---|---|
committer | Sungmin Kwak <sungmin.kwak@samsung.com> | 2019-06-19 14:31:51 +0900 |
commit | 75d7e371a72e8e65940dffb3d49579211527baba (patch) | |
tree | 42e95869713e70b43ec298baee1bdc8c197af399 /ism | |
parent | cc76ac9cadb8661c99517b435bc66df98857cbd8 (diff) | |
download | isf-75d7e371a72e8e65940dffb3d49579211527baba.tar.gz isf-75d7e371a72e8e65940dffb3d49579211527baba.tar.bz2 isf-75d7e371a72e8e65940dffb3d49579211527baba.zip |
Give the empty string for Password textfield in Remote Input
Change-Id: I24338de54fac65d075313e03caa87ac89c2785c0
Diffstat (limited to 'ism')
-rw-r--r-- | ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp b/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp index d60ef6da..cb2d3aa1 100644 --- a/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp +++ b/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp @@ -1551,7 +1551,7 @@ isf_wsc_context_send_surrounding_text (WSCContextISF* wsc_ctx, const char *text, WSCContextISF *context_scim = wsc_ctx; - if (!context_scim || !context_scim->impl) + if (!context_scim || !context_scim->impl || !text) return; char *conv_text = strdup (utf8_wcstombs (context_scim->impl->surrounding_text).c_str ()); @@ -1565,26 +1565,15 @@ isf_wsc_context_send_surrounding_text (WSCContextISF* wsc_ctx, const char *text, if (_TV) { if (context_scim->impl->input_resource != INPUT_RESOURCE_REMOTE) { - String _text(text); if (context_scim->impl->panel_layout == ECORE_IMF_INPUT_PANEL_LAYOUT_PASSWORD) { - const unsigned char pw_char[5] = { 0xE2, 0x80, 0xA2, 0x2A, 0x00 }; // • U+2022 * U+002A - if (_text.find_first_not_of((char *)pw_char) != String::npos) { - g_info_manager->remoteinput_callback_surrounding_text (_text, context_scim->impl->cursor_pos); - } - else { - String empty(""); - g_info_manager->remoteinput_callback_surrounding_text (empty, 0); - } + g_info_manager->remoteinput_callback_surrounding_text (String (""), 0); } else { - g_info_manager->remoteinput_callback_surrounding_text (_text, context_scim->impl->cursor_pos); + g_info_manager->remoteinput_callback_surrounding_text (String (text), context_scim->impl->cursor_pos); } - context_scim->impl->init_remote_surrounding_text = true; } } - else { - context_scim->impl->init_remote_surrounding_text = true; - } + context_scim->impl->init_remote_surrounding_text = true; } free (conv_text); } |