iOS 8 fix

- Make sure the key window after dismissing form sheet is the main
window of the application