Merge pull request #327 from aurimasv/dup-right-click

Allow right-click on multiple items in duplicate view. Closes #53
This commit is contained in:
Dan Stillman 2013-07-16 00:32:15 -07:00
commit 375f0774c0

View file

@ -2563,14 +2563,8 @@ var ZoteroPane = new function()
else if (tree.id == 'zotero-items-tree') {
let itemGroup = ZoteroPane_Local.getItemGroup();
if (itemGroup.isDuplicates()) {
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) {
if (event.button != 0 || event.metaKey || event.shiftKey
|| event.altKey || event.ctrlKey) {
return;
}