]> source.dussan.org Git - redmine.git/commitdiff
Adds support for Mac metaKey in issues selection (#5148).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 24 Mar 2011 19:21:47 +0000 (19:21 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 24 Mar 2011 19:21:47 +0000 (19:21 +0000)
Contributed by Simon Courtois.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5217 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/context_menu.js

index 3485ead8efdd99110d1ba5bdc1fa2a79d1388908..459859af1a140306fd63af539247166e84109b89 100644 (file)
@@ -50,7 +50,7 @@ ContextMenu.prototype = {
             tr.removeClassName('context-menu-selection');
           }
         } else {
-          if (e.ctrlKey) {
+          if (e.ctrlKey || e.metaKey) {
             this.toggleSelection(tr);
           } else if (e.shiftKey) {
             if (this.lastSelected != null) {