From 1f62454ce71eee0bf642fa84e9a996a55be6ad7a Mon Sep 17 00:00:00 2001 From: "nm.gonapa" Date: Mon, 8 Jul 2013 16:58:46 +0530 Subject: [PATCH] Back key changes for gallery Change-Id: I54d3871f1a1df111cafd5ebd1953f296be27a8db Signed-off-by: nm.gonapa --- src/ui/controls/FUiCtrl_Gallery.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ui/controls/FUiCtrl_Gallery.cpp b/src/ui/controls/FUiCtrl_Gallery.cpp index bafc6c7..e613656 100644 --- a/src/ui/controls/FUiCtrl_Gallery.cpp +++ b/src/ui/controls/FUiCtrl_Gallery.cpp @@ -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; } -- 2.7.4