JavaScript window.onfocus does not work.
authorKarol Furmaniak <k.furmaniak@samsung.com>
Wed, 13 May 2015 12:26:43 +0000 (14:26 +0200)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
[Problem]: JavaScript window.onfocus does not work.
[Solution]: Added call WasShown on focus in and
Blur on focus out.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=12713
Reviewed by: Hyunhak Kim, Piotr Tworek

Change-Id: I18b2d2387c4bea525c770e7fc484b7bda877ce6c
Signed-off-by: Karol Furmaniak <k.furmaniak@samsung.com>
tizen_src/chromium_impl/content/browser/renderer_host/render_widget_host_view_efl.cc

index e4548de..7bed206 100644 (file)
@@ -1088,6 +1088,7 @@ void RenderWidgetHostViewEfl::OnFocusIn(
 
   thiz->host_->SetActive(true);
   thiz->host_->GotFocus();
+  thiz->host_->WasShown(ui::LatencyInfo());
 
   Eina_Bool r = EINA_TRUE;
   r &= evas_object_key_grab(thiz->content_image_, "Left", 0, 0, EINA_TRUE);
@@ -1106,6 +1107,7 @@ void RenderWidgetHostViewEfl::OnFocusOut(
 
   thiz->host_->SetActive(false);
   thiz->host_->LostCapture();
+  thiz->host_->Blur();
 
   evas_object_key_ungrab(thiz->content_image_, "Left", 0, 0);
   evas_object_key_ungrab(thiz->content_image_, "Right", 0, 0);