[M120 Migration][VD] Fix some focus issues for offscreen mode
[platform/framework/web/chromium-efl.git] / content / browser / renderer_host / render_widget_host_view_aura.cc
index d737845..2a443c9 100644 (file)
@@ -553,7 +553,8 @@ void RenderWidgetHostViewAura::Focus() {
     window_->Focus();
 
 #if BUILDFLAG(IS_EFL)
-  efl_helper_->Focus(true);
+  if (!efl_helper_->HasFocus())
+    efl_helper_->Focus(true);
 #endif
 }