#endif
#if BUILDFLAG(IS_TIZEN_TV)
+#include "base/base_switches.h"
+#include "base/command_line.h"
#include "third_party/blink/public/platform/web_application_type.h"
#endif
if (key_events_enabled_)
AddKeyCallbacks();
- evas_object_focus_set(events_overlay_, EINA_TRUE);
+#if BUILDFLAG(IS_TIZEN_TV)
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableOffscreenRendering))
+#endif
+ evas_object_focus_set(events_overlay_, EINA_TRUE);
if (touch_events_enabled_)
AddTouchCallbacks();