END_TEST;
}
+
+int UtcDaliWebViewCheckResumeOnAccessibilityMode(void)
+{
+ ToolkitTestApplication application;
+
+ Dali::Accessibility::TestEnableSC(true);
+
+ WebView view = WebView::New();
+ view.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT);
+ view.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT);
+ view.SetProperty(Actor::Property::POSITION, Vector2(0, 0));
+ view.SetProperty(Actor::Property::SIZE, Vector2(800, 600));
+ DALI_TEST_CHECK(view);
+
+ application.GetScene().Add(view);
+ application.SendNotification();
+ application.Render();
+
+ view.Resume();
+ DALI_TEST_CHECK(view.HasKeyInputFocus());
+
+ Dali::Accessibility::TestEnableSC(false);
+
+ END_TEST;
+}
+
{
DALI_LOG_DEBUG_INFO("WebView[%p] Resume()\n", this);
mWebEngine.Resume();
+
+ if(Dali::Accessibility::IsUp())
+ {
+ SetKeyInputFocus();
+ }
}
}
if(mRemoteChild.GetAddress())
{
+ auto actor = GetInternalActor();
+ auto control = Toolkit::Control::DownCast(actor);
+ if(DALI_LIKELY(control))
+ {
+ control.SetKeyInputFocus();
+ }
+
// DoGetChildren is called at most once per every OnChildrenChanged.
// We have only one OnChildrenChanged in this case, so EmbedSocket will be called only once.
Accessibility::Bridge::GetCurrentBridge()->EmbedSocket(GetAddress(), mRemoteChild.GetAddress());