<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWindow/keyViewSelectionDirection",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSWindow(py)keyViewSelectionDirection"
  },
  "title" : "keyViewSelectionDirection"
}
-->

# keyViewSelectionDirection

The direction the window is currently using to change the key view.

```
var keyViewSelectionDirection: NSWindow.SelectionDirection { get }
```

## Discussion

The value of this property can be one of the values described in [`NSWindow.SelectionDirection`](/documentation/AppKit/NSWindow/SelectionDirection).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)