break;
}
+ case _KEY_TAB:
+ {
+ if (__enterKeyPressed)
+ {
+ __enterKeyPressed = false;
+ _ContextMenuItem* pItem = __pModel->GetItem(__focusedIndex);
+ if (pItem != null)
+ {
+ pItem->SetAndInvalidate(false);
+ }
+ }
+
+ __focusedIndex = 0;
+
+ _ContextMenuItem* pItem = __pModel->GetItem(__focusedIndex);
+ if(pItem == null)
+ {
+ __focusedIndex = -1;
+ break;
+ }
+
+ pItem->SetFocused(true);
+ pItem->DrawFocus();
+ __pContextMenu->GetScrollPanel()->OnChildControlFocusMoved(*pItem);
+
+ break;
+ }
case _KEY_ENTER:
{
__enterKeyPressed = true;
case _KEY_DOWN:
// fall through
case _KEY_BACKSPACE:
+ // fall through
+ case _KEY_TAB:
break;
case _KEY_ENTER:
{
}
void
-_ContextMenuListPresenter::OnDrawFocus(void)
-{
- _ContextMenuItem* pItem = __pModel->GetItem(__focusedIndex);
- if (pItem == null)
- {
- __focusedIndex = 0;
- pItem = __pModel->GetItem(__focusedIndex);
- }
-
- if (pItem != null)
- {
- pItem->SetFocused(true);
- pItem->DrawFocus();
- __pContextMenu->GetScrollPanel()->OnChildControlFocusMoved(*pItem);
- }
-}
-
-void
_ContextMenuListPresenter::OnFocusModeStateChanged(void)
{
_Control* pFocusedControl = null;
virtual bool OnKeyPressed(const _Control& source, const _KeyInfo& keyInfo);
virtual bool OnKeyReleased(const _Control& source, const _KeyInfo& keyInfo);
virtual bool IsChildControlFocusManage(void) const;
- virtual void OnDrawFocus(void);
virtual void OnFocusModeStateChanged(void);
virtual void OnFontChanged(Tizen::Graphics::Font* pFont);