Briefly, my problem is that I would like to execute the effect of Esc button by a line of Javascript, for example execute an effect onclick
of the Esc button.
How can I do It ?
[ What I have is an upload in a jQuery box, so I would like that when the upload will finish, the escape function will be executed automatically to close the box]
I know it's an old question. However if somebody lands in here on search, it may help:
First, trigger the event on desired element (or document),
And then, have a keyup listener on document: