[Pkg-mozext-commits] [tabmixplus] 10/30: Follow up bug 1143038 - Use AppConstants in tabbrowser.xml

David Prévot taffit at moszumanska.debian.org
Sun Jun 14 22:15:36 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository tabmixplus.

commit 8dd2c181598554a85aca9998b22ee60f7c1b59ec
Author: onemen <tabmix.onemen at gmail.com>
Date:   Thu Mar 26 16:01:00 2015 +0200

    Follow up bug 1143038 - Use AppConstants in tabbrowser.xml
---
 chrome/content/minit/minit.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/chrome/content/minit/minit.js b/chrome/content/minit/minit.js
index 86fc8c8..426dfbb 100644
--- a/chrome/content/minit/minit.js
+++ b/chrome/content/minit/minit.js
@@ -775,7 +775,9 @@ var TMP_tabDNDObserver = {
           sourceNode.ownerDocument.defaultView.gMultiProcessBrowser)
         return (dt.effectAllowed = "none");
 
-      return (dt.effectAllowed = "copyMove");
+      let copyModifier = Tabmix.isVersion(390) &&
+          gBrowser.AppConstants.platform == "macosx" ? aEvent.altKey : aEvent.ctrlKey;
+      return (dt.effectAllowed = copyModifier ? "copy" : "move");
     }
 
     if (browserDragAndDrop.canDropLink(aEvent)) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git



More information about the Pkg-mozext-commits mailing list