Javascript PropertiesonKeyPress Event
Arguments
- eventEvent
An object that contains properties and methods for inspecting and manipulating the browser event. This object can be referenced in JavaScript added to the event, either through Action Javascript or using Text Mode.
See Event (MDN Web Docs) for more details.
Description
Fires when the user presses a key that produces a character value while the control has focus.
Discussion
The onKeyPress event fires when the user presses a key on the keyboard that produces a character value, such as a letter, number, or punctuation. Keys that do not produce a character, such as shift and alt, will not trigger the onKeyPress event.
The event fires after the onKeyDown event. You can add Action Javascript, custom JavaScript, or sever-side Xbasic to execute one or more actions to this event.
For more information about keyboard events, see Mozilla's documentation on KeyboardEvents or the developer documentation for your favorite web browser.