return false;
CApplicationMessenger::Get().SendAction(CAction(actionId, 0, newEvent.touch.x, newEvent.touch.y, newEvent.touch.x2, newEvent.touch.y2), windowId, false);
+ // Post an unfocus message for touch device after the action.
+ if (newEvent.touch.action == ACTION_GESTURE_END || newEvent.touch.action == ACTION_TOUCH_TAP)
+ {
+ CGUIMessage msg(GUI_MSG_UNFOCUS_ALL, 0, 0, 0, 0);
+ CApplicationMessenger::Get().SendGUIMessage(msg);
+ }
break;
}
}
{
sendEvent(ACTION_GESTURE_END, velocityX, velocityY, x, y);
- // unfocus the focused GUI item
- g_windowManager.SendMessage(GUI_MSG_UNFOCUS_ALL, 0, 0, 0, 0);
-
return true;
}
}
else
ret |= g_application.OnEvent(pumpEvent);
-
-//on ios touch devices - unfocus controls on finger lift
-#if !defined(TARGET_DARWIN_IOS_ATV2)
- if (pumpEvent.type == XBMC_MOUSEBUTTONUP)
- {
- g_windowManager.SendMessage(GUI_MSG_UNFOCUS_ALL, 0, 0, 0, 0);
- }
-#endif
}
-
return ret;
}