From 0f4a9e148212f847de8a05c57ecb3503af01f62e Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Mon, 8 Jan 2024 12:28:30 -0500 Subject: [PATCH] Prevent dblclick inside collection name input from reactivating row --- chrome/content/zotero/collectionTree.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/chrome/content/zotero/collectionTree.jsx b/chrome/content/zotero/collectionTree.jsx index 5a785e6a9f..de183dedf0 100644 --- a/chrome/content/zotero/collectionTree.jsx +++ b/chrome/content/zotero/collectionTree.jsx @@ -351,6 +351,7 @@ var CollectionTree = class CollectionTree extends LibraryTree { label.addEventListener('input', e => this.handleEditingChange(e, index)); label.addEventListener('mousedown', (e) => e.stopImmediatePropagation()); label.addEventListener('mouseup', (e) => e.stopImmediatePropagation()); + label.addEventListener('dblclick', (e) => e.stopImmediatePropagation()); label.addEventListener('blur', async (e) => { await this.commitEditingName(); this.stopEditing();