Fixed: firstResponder is lost when adding a firstResponder view to the same window

Previously, when adding a view (which is the firstResponder of the window) to the same window, the firstResponder was set to nil.
Now it keeps the same firstResponder.
Merge pull request #2222 from Dogild/FirstResponderWindow

Fixed: firstResponder is lost when adding a firstResponder view to the same window