fix modalview getting closed when dismissing alert [iOS 5]
Merge branch 'keywindowfix'