Hm... It seems that there is a regression here. This was working before, but in the latest version I also get a freeze under Linux, and under Windows I cannot get a right click, event when setting 2 as the button. (2 is the enumeration value for a right click)
Unfortunately I don't have much time now to correct this. Are you using Windows or Linux ?
"My software never has bugs. It just develops random features."
Windows. Thx for your reply. I was thinking that i do something wrong. It isn't working as a code but as a action is working perfectly. I like to do it as a code but... if it don't work i'll do it with actions.
The problem is that the vast majority of people use mostly the actions and not the (JavaScript) Code, so that part is less tested. Thanks for pointing this out, I will correct this as soon as possible, but you should use the actions in the meantime.
Since you know programming don't hesitate to use the procedure actions, I haven't got much feedback about them since they were published.
"My software never has bugs. It just develops random features."