bool
_TableViewPresenter::OnTouchCanceled(const _Control& source, const _TouchInfo& touchInfo)
{
+ if (__sweepOccured)
+ {
+ ResetSweptItem();
+ }
+
if (__pTableView->IsReorderModeEnabled() && __reorderInfo.itemIndex != -1)
{
ResetReorderItem(__reorderInfo.groupIndex, __reorderInfo.itemIndex);
void
_TableViewPresenter::OnFocusModeStateChanged(void)
{
- _Control* pFocusedControl = null;
_Window* pTop = __pTableView->GetRootWindow();
- if (pTop)
+
+ if (pTop != null)
{
- pFocusedControl = pTop->GetCurrentFocusControl();
- }
+ _Control* pFocusedControl = pTop->GetCurrentFocusControl();
- if (pFocusedControl != null)
- {
- pFocusedControl->SetFocused(false);
- }
+ if (pFocusedControl != null)
+ {
+ pFocusedControl->RemoveFocusRing();
+ }
+ }
}
bool