fixup! [M130 Migration] Fix without key press event issue 86/325286/4
authorSumant Chaudhary <sumant.c@samsung.com>
Fri, 6 Jun 2025 10:41:40 +0000 (16:11 +0530)
committerBot Blink <blinkbot@samsung.com>
Sun, 8 Jun 2025 23:54:02 +0000 (23:54 +0000)
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>
ui/base/ime/linux/input_method_auralinux.cc

index 89ae69a8514907916661a4f1b1dc40bc4fe2adee..a5978ed1a76371e608d506acbaca35c27625be45 100644 (file)
@@ -133,7 +133,7 @@ ui::EventDispatchDetails InputMethodAuraLinux::DispatchKeyEvent(
         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);
@@ -236,7 +236,7 @@ ui::EventDispatchDetails InputMethodAuraLinux::DispatchKeyEvent(
       // 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);