From eab81fa3fdda9b238fb8d33370510a9905962079 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Wed, 3 Feb 2016 18:48:11 +0900 Subject: [PATCH] ecore_imf/wayland: Support to set return key type and disable in runtime Change-Id: Id1ef8398490a3a61faf918007f12807fe87d9c42 --- src/modules/ecore_imf/wayland/wayland_imcontext.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/modules/ecore_imf/wayland/wayland_imcontext.c b/src/modules/ecore_imf/wayland/wayland_imcontext.c index 3f23373..050eef2 100755 --- a/src/modules/ecore_imf/wayland/wayland_imcontext.c +++ b/src/modules/ecore_imf/wayland/wayland_imcontext.c @@ -1305,6 +1305,10 @@ wayland_im_context_input_panel_return_key_type_set(Ecore_IMF_Context *ctx, WaylandIMContext *imcontext = (WaylandIMContext *)ecore_imf_context_data_get(ctx); imcontext->return_key_type = return_key_type; + + if (imcontext->input && imcontext->text_input) + wl_text_input_set_return_key_type_set(imcontext->text_input, + imcontext->return_key_type); } EAPI void @@ -1314,6 +1318,10 @@ wayland_im_context_input_panel_return_key_disabled_set(Ecore_IMF_Context *ctx, WaylandIMContext *imcontext = (WaylandIMContext *)ecore_imf_context_data_get(ctx); imcontext->return_key_disabled = disabled; + + if (imcontext->input && imcontext->text_input) + wl_text_input_set_return_key_disabled(imcontext->text_input, + imcontext->return_key_disabled); } EAPI void -- 2.7.4