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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4