Stopping SlideShow incase of escape key pressed in Gallery.
authormoinuddin.s <moinuddin.s@samsung.com>
Sun, 14 Jul 2013 07:48:29 +0000 (13:18 +0530)
committermoinuddin.s <moinuddin.s@samsung.com>
Sun, 14 Jul 2013 07:50:41 +0000 (13:20 +0530)
Signed-off-by: moinuddin.s <moinuddin.s@samsung.com>
Change-Id: I6b76afe9c03575bb0ded4ff1c11e0e84465b30b8
Signed-off-by: moinuddin.s <moinuddin.s@samsung.com>
src/ui/controls/FUiCtrl_Gallery.cpp

index 1cb886d..5010011 100644 (file)
@@ -827,7 +827,7 @@ _Gallery::OnKeyPressed(const _Control& source, const _KeyInfo& keyInfo)
 bool
 _Gallery::OnKeyReleased(const _Control& source, const _KeyInfo& keyInfo)
 {
-       if (keyInfo.GetKeyCode() == _KEY_BACK && IsSlideShowStarted())
+       if ((keyInfo.GetKeyCode() == _KEY_BACK  || keyInfo.GetKeyCode() == _KEY_ESC) && IsSlideShowStarted())
        {
                StopSlideShow();
                return true;