bool
_TableViewItem::OnKeyPressed(const _Control& source, const _KeyInfo& keyInfo)
{
+ if (!IsFocusModeStateEnabled())
+ {
+ return false;
+ }
+
_KeyCode keyCode = keyInfo.GetKeyCode();
IListT<_Control*>* pFocusList = GetFocusListN();
SysTryReturn(NID_UI_CTRL, pFocusList != null, true, GetLastResult(), "[%s] propagating.", GetErrorMessage(GetLastResult()));
bool
_TableViewItem::OnKeyReleased(const _Control& source, const _KeyInfo& keyInfo)
{
+ if (!IsFocusModeStateEnabled())
+ {
+ return false;
+ }
+
_KeyCode keyCode = keyInfo.GetKeyCode();
if(keyCode == _KEY_ENTER)
bool
_TableViewPresenter::OnKeyPressed(const _Control& source, const _KeyInfo& keyInfo)
{
+ if (!__pTableView->IsFocusModeStateEnabled())
+ {
+ return false;
+ }
+
_KeyCode keyCode = keyInfo.GetKeyCode();
_Control* pFocusedControl = null;
_Window* pTop = source.GetRootWindow();
bool
_TableViewPresenter::OnKeyReleased(const _Control& source, const _KeyInfo& keyInfo)
{
+ if (!__pTableView->IsFocusModeStateEnabled())
+ {
+ return false;
+ }
+
_KeyCode keyCode = keyInfo.GetKeyCode();
if (keyCode == _KEY_UP || keyCode == _KEY_DOWN)
void
_TableViewPresenter::OnDrawFocus(void)
{
+ if (!__pTableView->IsFocusModeStateEnabled())
+ {
+ return;
+ }
+
_Control* pFocusedControl = null;
_Window* pTop = __pTableView->GetRootWindow();
if (pTop)