Constructor
# new RezEnterKeyTransformer()
Transformer that handles Enter key presses in form inputs.
Listens for keydown events on text-like inputs within rez-live forms.
When Enter is pressed, synthesizes a form submit event and routes it
through the receiver.
Supported input types: text, email, password, search, url, tel, number, and inputs without a type attribute.
Extends
Methods
# addEventListener(elem)
Adds a keydown listener that synthesizes submit events on Enter.
Parameters:
| Name | Type | Description |
|---|---|---|
elem |
Element
|
The input element |
# static constructor(receiver)
Creates a new RezEnterKeyTransformer.
Parameters:
| Name | Type | Description |
|---|---|---|
receiver |
Object
|
Object that handles submit events |