keydown
fires when any key is pressed
keydown: (event: KeyboardEvent, name: string, id?: string) => void;
Parameters:
event: KeyboardEvent
- a native KeyboardEvent objectname: string
- the name or id of the control of Formid?: string
- optional, the id of the element of the control of Form (for RadioGroup, CheckboxGroup, Combo)
Example
form.events.on("keydown", function(event, name, id) {
console.log(event, name, id);
});
Related sample: Form. Events
The event fires when the control of Form or the element of the control of Form is in focus.
Change log:
added in v7.2