---
title: keyViewSelectionDirection
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nswindow/keyviewselectiondirection
---

# keyViewSelectionDirection

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

## Declaration

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

## Discussion

Discussion The value of this property can be one of the values described in NSWindow.SelectionDirection.

## See Also

### Managing the Key View Loop

- [selectKeyView(preceding:)](appkit/nswindow/selectkeyview(preceding:).md)
- [selectKeyView(following:)](appkit/nswindow/selectkeyview(following:).md)
- [selectPreviousKeyView(_:)](appkit/nswindow/selectpreviouskeyview(_:).md)
- [selectNextKeyView(_:)](appkit/nswindow/selectnextkeyview(_:).md)
- [autorecalculatesKeyViewLoop](appkit/nswindow/autorecalculateskeyviewloop.md)
- [recalculateKeyViewLoop()](appkit/nswindow/recalculatekeyviewloop().md)
