Fix for Gallery Issue N_SE-52370
authornm.gonapa <nm.gonapa@samsung.com>
Tue, 17 Sep 2013 11:52:08 +0000 (17:22 +0530)
committernm.gonapa <nm.gonapa@samsung.com>
Tue, 17 Sep 2013 11:56:18 +0000 (17:26 +0530)
Change-Id: Ic374a7f722ac70196ef00c355edb02f6151bb05b
Signed-off-by: nm.gonapa <nm.gonapa@samsung.com>
src/ui/controls/FUiCtrl_Gallery.cpp
src/ui/inc/FUiCtrl_Gallery.h

index 0e0c10e..269c896 100644 (file)
@@ -55,7 +55,6 @@ _Gallery::_Gallery(void)
        , __longPressed(false)
        , __keyEventProcessing(false)
        , __pGalleryImageElement(null)
-       , __isFocused(false)
 {
        _AccessibilityContainer* pContainer = GetAccessibilityContainer();
        if (pContainer != null)
@@ -716,7 +715,7 @@ _Gallery::OnSettingChanged(Tizen::Base::String& key)
 bool
 _Gallery::OnKeyPressed(const _Control& source, const _KeyInfo& keyInfo)
 {
-       if (!__isFocused)
+       if (!IsFocusModeStateEnabled())
        {
                return false;
        }
@@ -833,7 +832,7 @@ _Gallery::OnKeyPressed(const _Control& source, const _KeyInfo& keyInfo)
 bool
 _Gallery::OnKeyReleased(const _Control& source, const _KeyInfo& keyInfo)
 {
-       if (!__isFocused)
+       if (!IsFocusModeStateEnabled())
        {
                return false;
        }
@@ -850,24 +849,18 @@ _Gallery::OnKeyReleased(const _Control& source, const _KeyInfo& keyInfo)
 bool
 _Gallery::OnFocusGained(const _Control& source)
 {
-       if (IsFocusModeStateEnabled())
-       {
-               __isFocused = true;
-       }
-
        return _Control::OnFocusGained(source);
 }
 
 void
 _Gallery::OnFocusModeStateChanged(void)
 {
-       __isFocused = false;
+
 }
 
 bool
 _Gallery::OnFocusLost(const _Control& source)
 {
-       __isFocused = false;
        return _Control::OnFocusLost(source);
 }
 
index bf52a37..255fc94 100644 (file)
@@ -194,7 +194,6 @@ private:
        bool __keyEventProcessing;
 
        Tizen::Ui::_AccessibilityElement* __pGalleryImageElement;
-       bool __isFocused;
 }; // _Gallery
 
 }}}