---
title: selectedKeyboardInputSource
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextinputcontext/selectedkeyboardinputsource
---

# selectedKeyboardInputSource

The identifier string for the selected keyboard text input source.

## Declaration

```swift
var selectedKeyboardInputSource: NSTextInputSourceIdentifier? { get set }
```

## See Also

### Handling Input Sources

- [handleEvent(_:)](appkit/nstextinputcontext/handleevent(_:).md)
- [discardMarkedText()](appkit/nstextinputcontext/discardmarkedtext().md)
- [invalidateCharacterCoordinates()](appkit/nstextinputcontext/invalidatecharactercoordinates().md)
- [keyboardInputSources](appkit/nstextinputcontext/keyboardinputsources.md)
- [localizedName(forInputSource:)](appkit/nstextinputcontext/localizedname(forinputsource:).md)
- [NSTextInputSourceIdentifier](appkit/nstextinputsourceidentifier.md)
