---
title: keyboardSelectionDidChangeNotification
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nstextinputcontext/keyboardselectiondidchangenotification
---

# keyboardSelectionDidChangeNotification

Posted after the selected text input source changes.

## Declaration

```swift
class let keyboardSelectionDidChangeNotification: NSNotification.Name
```

## Discussion

Discussion To observe this notification using Swift concurrency, use NSTextInputContext.KeyboardSelectionDidChangeMessage.
