Merge "Track input state when transferring touch focus."