Tells the delegate that the window has become the key window.
On This Page
optional func windowDidBecomeKey(_ notification: Notification)
A notification named didBecomeKeyNotification.
You can retrieve the window object in question by sending object to notification.
Tells the delegate that the window has resigned key window status.