---
title: "inputText(_:client:)"
framework: Objective-C Runtime
role: symbol
role_heading: Instance Method
path: "objectivec/nsobject-swift.class/inputtext(_:client:)"
---

# inputText(_:client:)

Handles key down events that do not map to an action method.

## Declaration

```swift
func inputText(_ string: String!, client sender: Any!) -> Bool
```

## Parameters

- `string`: The key down event, which is the text input by the client.
- `sender`: The client object sending the key down events.

## Return Value

Return Value YES if the input is accepted; otherwise NO.

## Discussion

Discussion An input method should implement this method when using key binding (that is, it implements didCommand(by:client:)).
