From: Youngbok Shin Date: Tue, 16 Jan 2018 06:30:50 +0000 (+0900) Subject: edje entry: set imf context input hint with MULTILINE if current entry is multiline X-Git-Tag: submit/sandbox/upgrade/efl120/20180319.053334~312 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=292c4f41554e126008195f13d5ad11eab16834c0;p=platform%2Fupstream%2Fefl.git edje entry: set imf context input hint with MULTILINE if current entry is multiline @tizen_fix --- diff --git a/src/lib/edje/edje_entry.c b/src/lib/edje/edje_entry.c index 18f335d..feacc46 100644 --- a/src/lib/edje/edje_entry.c +++ b/src/lib/edje/edje_entry.c @@ -4317,8 +4317,18 @@ _edje_entry_input_hint_set(Edje_Real_Part *rp, Edje_Input_Hints input_hints) en = rp->typedata.text->entry_data; if (!en) return; #ifdef HAVE_ECORE_IMF + /* TIZEN_ONLY(20170629): set imf context input hint with MULTILINE if current entry is multiline if (en->imf_context) ecore_imf_context_input_hint_set(en->imf_context, (Ecore_IMF_Input_Hints)input_hints); + */ + if (en->imf_context) + { + if (rp->part->multiline) + ecore_imf_context_input_hint_set(en->imf_context, (Ecore_IMF_Input_Hints)input_hints | ECORE_IMF_INPUT_HINT_MULTILINE); + else + ecore_imf_context_input_hint_set(en->imf_context, (Ecore_IMF_Input_Hints)input_hints); + } + /* END */ #else (void)input_hints; #endif