From bbfc6ed81770d747a22fb2b93a27009011514485 Mon Sep 17 00:00:00 2001 From: abaevbog Date: Sun, 24 Sep 2023 05:34:00 -0400 Subject: [PATCH] activate collection tree row only if it's focused (#3431) Fixes: #3426 --- chrome/content/zotero/collectionTree.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/collectionTree.jsx b/chrome/content/zotero/collectionTree.jsx index edf7e32c86..73a5d272e9 100644 --- a/chrome/content/zotero/collectionTree.jsx +++ b/chrome/content/zotero/collectionTree.jsx @@ -173,7 +173,7 @@ var CollectionTree = class CollectionTree extends LibraryTree { handleActivate = (event, indices) => { let index = indices[0]; let treeRow = this.getRow(index); - if (treeRow.isCollection() && this.editable) { + if (treeRow.isCollection() && this.editable && this.selection.focused == index) { this._editing = treeRow; treeRow.editingName = treeRow.ref.name; this.tree.invalidateRow(index);