TextField.dismissKeyboard()
Summary
The dismissKeyboard()
method dismisses the keyboard if this textfield is the first responder.
Syntax
TextField.dismissKeyboard()
Description
Use this instead of [resignFirstResponder] as it also resigns the Keyman keyboard's responders.
Examples
Example: Using dismissKeyboard()
The following script illustrates the use of dismissKeyboard()
:
TextField.dismissKeyboard()