YUI.add("event-contextmenu",function(h,e){var a=h.Event,p=h.DOM,t=h.UA,n=h.UA.os,r=t.ie,u=t.gecko,Y=t.webkit,X=t.opera,v="windows"===n,m="macintosh"===n,y={},t={on:function(s,e,g,t){var n=[];n.push(a._attach(["contextmenu",function(e){e.preventDefault();var t=h.stamp(s),n=y[t];n&&(e.clientX=n.clientX,e.clientY=n.clientY,e.pageX=n.pageX,e.pageY=n.pageY,delete y[t]),g.fire(e)},s])),n.push(s[t?"delegate":"on"]("keydown",function(e){var t,n,a=this.getDOMNode(),c=e.shiftKey,i=e.keyCode,o=c&&121==i,d=v&&93==i,l=e.ctrlKey,i=77===i,f=m&&(Y||u)&&l&&c&&e.altKey&&i,l=m&&X&&l&&c&&i,c=0,i=0;(v&&(o||d)||f||l)&&(((r||v&&(u||X))&&o||l)&&e.preventDefault(),l=(f=p.getXY(a))[0],f=f[1],t=p.docScrollX(),n=p.docScrollY(),h.Lang.isUndefined(l)||(c=l+a.offsetWidth/2-t,i=f+a.offsetHeight/2-n),l=c+t,f=i+n,(d||v&&Y&&o)&&(y[h.stamp(s)]={clientX:c,clientY:i,pageX:l,pageY:f}),((r||v&&(u||X))&&o||m)&&(e.clientX=c,e.clientY=i,e.pageX=l,e.pageY=f,g.fire(e)))},t)),e._handles=n},detach:function(e,t,n){h.each(t._handles,function(e){e.detach()})}};t.delegate=t.on,t.detachDelegate=t.detach,a.define("contextmenu",t,!0)},"patched-v3.18.3",{requires:["event-synthetic","dom-screen"]});