Closed JasonGross closed 2 months ago
That onmousedown and onmouseup do not work is a bug (the key definition is wrong), that will be corrected in the next version. But the other keys are html only, they have no counterpart in pdf. So you will get as now only a warning:
Package hyperref Warning: HTML field option `onmousemove'
(hyperref) is ignored on input line 236.
I uploaded a new hyperref to ctan that fix this.
This code works:
but replacing
onclick
with any of theonmouse*
options does not. Inspecting the JS debugger in Acrobat shows empty MouseUp annotations attached regardless of which onmouse property I choose (I haven't tested all of them, I'm generalizing from a few). Perhaps the issue is that the properties are named incorrectly? The acrobat form editor names them differently:I guess onenter, onblur, onfocus, onexit will work fine, but there doesn't seem to be anything that gives a MouseDown annotation?
Btw, I could not find the code that defines how these properties get transformed into javascript code. Where is the code that does that?