Skip to content

Commit

Permalink
default to right click activation (like explained in the docs)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodneyrehm committed Jun 4, 2012
1 parent 18a420b commit 22be415
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/jquery.contextMenu.js
Expand Up @@ -1166,6 +1166,11 @@ $.contextMenu = function(operation, options) {
namespaces[o.selector] = o.ns; namespaces[o.selector] = o.ns;
menus[o.ns] = o; menus[o.ns] = o;


// default to right click
if (!o.trigger) {
o.trigger = 'right';
}

if (!initialized) { if (!initialized) {
// make sure item click is registered first // make sure item click is registered first
$document $document
Expand Down

0 comments on commit 22be415

Please sign in to comment.