, __longPressed(false)
, __keyEventProcessing(false)
, __pGalleryImageElement(null)
- , __isFocused(false)
{
_AccessibilityContainer* pContainer = GetAccessibilityContainer();
if (pContainer != null)
bool
_Gallery::OnKeyPressed(const _Control& source, const _KeyInfo& keyInfo)
{
- if (!__isFocused)
+ if (!IsFocusModeStateEnabled())
{
return false;
}
bool
_Gallery::OnKeyReleased(const _Control& source, const _KeyInfo& keyInfo)
{
- if (!__isFocused)
+ if (!IsFocusModeStateEnabled())
{
return false;
}
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);
}