Permalink
Browse files

default to right click activation (like explained in the docs)

  • Loading branch information...
1 parent 18a420b commit 22be415d79961c55412e8521d45165ab9b5943b3 @rodneyrehm rodneyrehm committed Jun 4, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/jquery.contextMenu.js
View
5 src/jquery.contextMenu.js
@@ -1166,6 +1166,11 @@ $.contextMenu = function(operation, options) {
namespaces[o.selector] = o.ns;
menus[o.ns] = o;
+ // default to right click
+ if (!o.trigger) {
+ o.trigger = 'right';
+ }
+
if (!initialized) {
// make sure item click is registered first
$document

0 comments on commit 22be415

Please sign in to comment.