From: Youngbok Shin Date: Thu, 29 Jun 2017 07:59:39 +0000 (+0900) Subject: edje entry: set imf context input hint with MULTILINE if current entry is multiline X-Git-Tag: accepted/tizen/unified/20170711.181154~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7e5d80677367fee932e6f025cf3c11c8c158e83c;p=platform%2Fupstream%2Fefl.git edje entry: set imf context input hint with MULTILINE if current entry is multiline @tizen_fix Change-Id: I52b6df29cdec81c0749b2b8b1503f71cedadbf4e --- diff --git a/src/lib/edje/edje_entry.c b/src/lib/edje/edje_entry.c index a130a1f..a1241ca 100644 --- a/src/lib/edje/edje_entry.c +++ b/src/lib/edje/edje_entry.c @@ -4046,8 +4046,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