__pContextMenuPresenter->OnFocusModeStateChanged();
}
+bool
+_ContextMenu::OnFocusGained(const _Control& source)
+{
+ __pContextMenuPresenter->OnFocusGained(source);
+
+ return true;
+}
+
+bool
+_ContextMenu::OnFocusLost(const _Control& source)
+{
+ __pContextMenuPresenter->OnFocusLost(source);
+
+ return true;
+}
_AccessibilityElement*
_ContextMenu::GetAccessibilityElement(const int mainIndex) const
{
, __enterKeyPressed(false)
, __backKeyPressed(false)
, __focusedIndex(-1)
+ , __focusLost(false)
{
}
if (__touchOutRect == true)
{
FloatRectangle itemRect = __pContextMenu->GetItemRect();
- if (!itemRect.Contains(touchPosition))
+ if (!itemRect.Contains(touchPosition) || __focusLost)
{
__selectedIndex = -1;
__focusedIndex = -1;
Draw();
}
+bool
+_ContextMenuGridPresenter::OnFocusGained(const _Control& source)
+{
+ __focusLost = false;
+ return true;
+}
+
+bool
+_ContextMenuGridPresenter::OnFocusLost(const _Control& source)
+{
+ __focusLost = true;
+ return true;
+}
+
void
_ContextMenuGridPresenter::OnFontChanged(Font* pFont)
{
, __enterKeyPressed(false)
, __backKeyPressed(false)
, __focusedIndex(-1)
+ , __focusLost(false)
{
}
if (__touchOutRect)
{
FloatRectangle itemRect = __pContextMenu->GetItemRect();
- if (!itemRect.Contains(touchPosition))
+ if (!itemRect.Contains(touchPosition) || __focusLost)
{
__selectedIndex = -1;
__focusedIndex = -1;
}
}
+bool
+_ContextMenuListPresenter::OnFocusGained(const _Control& source)
+{
+ __focusLost = false;
+ return true;
+}
+
+bool
+_ContextMenuListPresenter::OnFocusLost(const _Control& source)
+{
+ __focusLost = true;
+ return true;
+}
+
void
_ContextMenuListPresenter::OnFontChanged(Font* pFont)
{
virtual void OnFrameMinimized(const Tizen::Ui::Controls::_Frame& source);
virtual void OnFrameRestored(const Tizen::Ui::Controls::_Frame& source);
virtual void OnDraw(void);
+ virtual bool OnFocusGained(const _Control& source);
+ virtual bool OnFocusLost(const _Control& source);
virtual _UiTouchEventDelivery OnPreviewTouchPressed(const _Control& source, const _TouchInfo& touchinfo);
virtual _UiTouchEventDelivery OnPreviewTouchMoved(const _Control& source, const _TouchInfo& touchinfo);
virtual bool IsChildControlFocusManage(void) const;
virtual void OnDrawFocus(void);
virtual void OnFocusModeStateChanged(void);
+ virtual bool OnFocusGained(const _Control& source);
+ virtual bool OnFocusLost(const _Control& source);
virtual void OnFontChanged(Tizen::Graphics::Font* pFont);
virtual void OnFontInfoRequested(unsigned long& style, float& size);
bool __enterKeyPressed;
bool __backKeyPressed;
int __focusedIndex;
+ bool __focusLost;
}; // _ContextMenuGridPresenter
}}} // Tizen::Ui: Control
virtual bool OnKeyReleased(const _Control& source, const _KeyInfo& keyInfo);
virtual bool IsChildControlFocusManage(void) const;
virtual void ResetFocus(void);
+ virtual bool OnFocusGained(const _Control& source);
+ virtual bool OnFocusLost(const _Control& source);
virtual void OnFontChanged(Tizen::Graphics::Font* pFont);
virtual void OnFontInfoRequested(unsigned long& style, float& size);
bool __enterKeyPressed;
bool __backKeyPressed;
int __focusedIndex;
+ bool __focusLost;
}; // _ContextMenuListPresenter
}}} // Tizen::Ui: Control
virtual bool IsChildControlFocusManage(void) const { return false; };
virtual void OnDrawFocus(void) {};
virtual void OnFocusModeStateChanged(void) {};
+ virtual bool OnFocusGained(const _Control& source){return true;}
+ virtual bool OnFocusLost(const _Control& source){return true;}
virtual void CalculateItemMaximumWidth(void) {};