'Simulate F1 keydown in jQuery

we are making a TV solution for a holiday park. In this case it's about a div that onclick should simulate the F1 key. when I use

<div onclick="jQuery.event.trigger({ type: 'keydown', which: 112 });" id="0" class="block">

nothing happens. it is therefore the intention that when the block is clicked, the F1 action of the device is performed.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source