src/aria/tools/contextual/ContextualMenu.js
function (event) {
                if (!this._enabled) {
                    return;
                }
                event = new ariaDomEvent(event);
                if (ariaCoreBrowser.isSafari) {
                    event.ctrlKey = this._safariCtrlKey;
                }
                // ctrl right click only
                if (event.ctrlKey) {
                    // stop default behaviour, like opening real
                    // contextual menu
                    event.stopPropagation();
                    event.preventDefault();
                    var target = event.target;
                    this.__callContextualMenu(target, event.clientX, event.clientY);
                    event.$dispose();
                    return false;
                }
                event.$dispose();
            }
function (event) {
                if (!this._enabled) {
                    return;
                }
                event = new ariaDomEvent(event);
                if (ariaCoreBrowser.isSafari) {
                    event.ctrlKey = this._safariCtrlKey;
                }
                // ctrl right click only
                if (event.ctrlKey) {
                    // stop default behaviour, like opening real
                    // contextual menu
                    event.stopPropagation();
                    event.preventDefault();
                    var target = event.target;
                    this.__callContextualMenu(target, event.clientX, event.clientY);
                    event.$dispose();
                    return false;
                }
                event.$dispose();
            }
function ( event ) { if ( ! this . _enabled ) { return ; } event = new ariaDomEvent ( event ) ; if ( ariaCoreBrowser . isSafari ) { event . ctrlKey = this . _safariCtrlKey ; } // ctrl right click only if ( event . ctrlKey ) { // stop default behaviour, like opening real // contextual menu event . stopPropagation ( ) ; event . preventDefault ( ) ; var target = event . target ; this . __callContextualMenu ( target , event . clientX , event . clientY ) ; event . $dispose ( ) ; return false ; } event . $dispose ( ) ; }
Handler for context menu call on document.body
@protected
@param {Event} event
Handler for context menu call on document . body