Merge "Close input session when the view is detached from the window." into mnc-dev