Back key changes for gallery
authornm.gonapa <nm.gonapa@samsung.com>
Mon, 8 Jul 2013 11:28:46 +0000 (16:58 +0530)
committernm.gonapa <nm.gonapa@samsung.com>
Mon, 8 Jul 2013 11:38:09 +0000 (17:08 +0530)
Change-Id: I54d3871f1a1df111cafd5ebd1953f296be27a8db
Signed-off-by: nm.gonapa <nm.gonapa@samsung.com>
src/ui/controls/FUiCtrl_Gallery.cpp

index bafc6c7..e613656 100644 (file)
@@ -325,6 +325,7 @@ _Gallery::GetSlideShowViewDuration(void) const
 result
 _Gallery::StartSlideShow(bool repeat)
 {
+       SetFocused(true);
        return GetPresenter().StartSlideShow(repeat);
 }
 
@@ -823,6 +824,12 @@ _Gallery::OnKeyPressed(const _Control& source, const _KeyInfo& keyInfo)
 bool
 _Gallery::OnKeyReleased(const _Control& source, const _KeyInfo& keyInfo)
 {
+       if (keyInfo.GetKeyCode() == _KEY_BACK && IsSlideShowStarted())
+       {
+               StopSlideShow();
+               return true;
+       }
+
        return false;
 }