diff --git a/ChangeLog b/ChangeLog index 43d4305c..844718d9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -37,6 +37,16 @@ to cloudcmd.js * Fixed bug with pressing Esc when menu showed. We could not to now, when key was pressed becaouse of stopPropogation function in jquery.contextMenu module. +Commented stopPropogration. +``` +keyStop: function(e, opt) { + if (!opt.isInput) { + e.preventDefault(); + } + + //e.stopPropagation(); +} +``` 2012.12.12, Version 0.1.8 diff --git a/lib/client/menu/contextMenu.js b/lib/client/menu/contextMenu.js index 53506e6d..fe6d51a7 100644 --- a/lib/client/menu/contextMenu.js +++ b/lib/client/menu/contextMenu.js @@ -93,8 +93,7 @@ var // currently active contextMenu trigger }, // position menu position: function(opt, x, y) { - var $this = this, - offset; + var offset; // determine contextMenu position if (!x && !y) { opt.determinePosition.call(this, opt.$menu); @@ -106,7 +105,7 @@ var // currently active contextMenu trigger // x and y are given (by mouse event) var triggerIsFixed = opt.$trigger.parents().andSelf() .filter(function() { - return $($this).css('position') == "fixed"; + return $(this).css('position') == "fixed"; }).length; if (triggerIsFixed) { @@ -431,9 +430,7 @@ var // currently active contextMenu trigger //e.stopPropagation(); }, key: function(e) { - var opt = $currentTrigger.data('contextMenu') || {}, - $children = opt.$menu.children(), - $round; + var opt = $currentTrigger.data('contextMenu') || {}; switch (e.keyCode) { case 9: