Instance Method

inputText(_:client:)

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

Declaration

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

true if the input is accepted; otherwise false.

Discussion

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

See Also

Supporting Key Binding

func didCommand(by: Selector!, client: Any!) -> Bool

Processes a command generated by user action such as typing certain keys or pressing the mouse button.