---
title: isKeyWindow
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nswindow/iskeywindow
---

# isKeyWindow

A Boolean value that indicates whether the window is the key window for the application.

## Declaration

```swift
var isKeyWindow: Bool { get }
```

## Discussion

Discussion The value of this property is true if the window is the key window for the application; otherwise, false.

## See Also

### Related Documentation

- [isMainWindow](appkit/nswindow/ismainwindow.md)

### Managing Key Status

- [canBecomeKey](appkit/nswindow/canbecomekey.md)
- [makeKey()](appkit/nswindow/makekey().md)
- [makeKeyAndOrderFront(_:)](appkit/nswindow/makekeyandorderfront(_:).md)
- [becomeKey()](appkit/nswindow/becomekey().md)
- [resignKey()](appkit/nswindow/resignkey().md)
