From: nm.gonapa Date: Mon, 8 Jul 2013 11:28:46 +0000 (+0530) Subject: Back key changes for gallery X-Git-Tag: submit/tizen_2.2/20130714.153149~66^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f62454ce71eee0bf642fa84e9a996a55be6ad7a;p=framework%2Fosp%2Fuifw.git Back key changes for gallery Change-Id: I54d3871f1a1df111cafd5ebd1953f296be27a8db Signed-off-by: nm.gonapa --- 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; }