www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 311e6f2fa74c89931674944c3ba39f510af05414
parent d3ec8fcdcfe016a9b4d939a706d423970b99e683
Author: Dan Stillman <dstillman@gmail.com>
Date:   Sun, 19 May 2013 20:21:49 -0700

Merge pull request #326 from aurimasv/dup-click

Tweak duplicate view click behavior
Diffstat:
Mchrome/content/zotero/zoteroPane.js | 14+++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js @@ -2446,9 +2446,10 @@ var ZoteroPane = new function() let itemGroup = ZoteroPane_Local.getItemGroup(); if (itemGroup.isDuplicates()) { - // Trigger only on primary-button single clicks with modifiers + // Trigger only on primary-button single clicks without modifiers // (so that items can still be selected and deselected manually) - if (!event || event.detail != 1 || event.button != 0 || event.metaKey || event.shiftKey) { + if (!event || event.detail != 1 || event.button != 0 || event.metaKey + || event.shiftKey || event.altKey || event.ctrlKey) { return; } @@ -2537,7 +2538,14 @@ var ZoteroPane = new function() else if (tree.id == 'zotero-items-tree') { let itemGroup = ZoteroPane_Local.getItemGroup(); if (itemGroup.isDuplicates()) { - if (event.metaKey || event.shiftKey) { + if (event.button == 0 && (event.metaKey || event.shiftKey + || event.altKey || event.ctrlKey)) { + return; + } + + // Allow right-click on single items/attachments + var items = ZoteroPane_Local.getSelectedItems(); + if (event.button != 0 && items.length == 1) { return; }