Enabling InsertChar call for desktop profile only, fixing the ime
not working issue on desktop chrome-efl.
Change-Id: I4126200adace0a5332ca394da7785c75547fa959
Signed-off-by: Sumant Chaudhary <sumant.c@samsung.com>
event->stopped_propagation()) {
return details;
}
-#if !BUILDFLAG(IS_EFL)
+#if !BUILDFLAG(IS_TIZEN)
if ((event->is_char() || event->GetDomKey().IsCharacter()) &&
event->type() == ui::EventType::kKeyPressed) {
GetTextInputClient()->InsertChar(*event);
// TextInputClient::InsertChar().
// Note: don't use |client| and use GetTextInputClient() here because
// DispatchKeyEventPostIME may cause the current text input client change.
-#if !BUILDFLAG(IS_EFL)
+#if !BUILDFLAG(IS_TIZEN)
char16_t ch = event->GetCharacter();
if (ch && GetTextInputClient())
GetTextInputClient()->InsertChar(*event);