fixup! [M120 Migration] Show the context menu and settings menu 73/306973/2
authorAkshay Kanagali <a.kanagali@partner.samsung.com>
Fri, 1 Mar 2024 08:36:11 +0000 (14:06 +0530)
committerBot Blink <blinkbot@samsung.com>
Mon, 4 Mar 2024 09:10:06 +0000 (09:10 +0000)
This patch disables the function call updateFocus in
EflWindow::InitializeEventHandler for only chrome build which
impacts settings menu and enables for other builds.

Change-Id: I7a5613a2a1185a16c7e8ea2c91ce79c72793a232
Signed-off-by: Akshay Kanagali <a.kanagali@partner.samsung.com>
tizen_src/chromium_impl/ui/ozone/platform/efl/efl_window.cc

index ad2ebe0..af45ee1 100644 (file)
@@ -477,6 +477,10 @@ void EflWindow::InitializeEventHandler() {
   // Set activation true on window to capture key events.
   delegate_->OnActivationChanged(true /*active*/);
 
+  // Set focus active for a newly opened window.
+#if !defined(BUILD_CHROME)
+  UpdateFocus(true);
+#endif
   efl_event_handler_ = std::make_unique<EflEventHandler>(this);
   PlatformEventSource::GetInstance()->AddPlatformEventDispatcher(this);
 }