Keypress
Bind an event handler to the "keypress" JavaScript event, or trigger that event on an element.
<div>
<input type="text" value="" id="txtKeypress">
<?php
echo
YsJQuery::newInstance()
->onKeypress()
->in('#txtKeypress')
->execute(
new YsJsFunction("alert('On key down, The event code is = '
+ String.fromCharCode(event.keyCode))", 'event')
)
?>
</div>

Support requests, bug reports, and off-topic comments will be deleted without warning.