becomeKey()
Informs the window that it has become the key window.
Declaration
func becomeKey()Discussion
This method reestablishes the window’s first responder, sends the becomeKeyWindow message to that object if it responds, and posts didBecomeKeyNotification to the default notification center.
Never invoke this method directly.