Contents

keyWindow

The window that currently receives keyboard events.

Declaration

weak var keyWindow: NSWindow? { get }

Discussion

The value of this property is nil when there is no window receiving keyboard events. The property might be nil because the app’s storyboard file has not yet finished loading or when the receiver is not active.

See Also

Related Documentation

Managing App Windows