www

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

commit 27502a60b289d79cc2211f65558c7e8643dcf0c1
parent 6f811cbbd09343e4a990f843b82d21d37300c99e
Author: Aurimas Vinckevicius <aurimas.dev@gmail.com>
Date:   Tue,  3 Feb 2015 14:43:52 -0600

Disable expand/collapse shortcuts in coll. tree when in-line editing

Diffstat:
Mchrome/content/zotero/xpcom/collectionTreeView.js | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/collectionTreeView.js b/chrome/content/zotero/xpcom/collectionTreeView.js @@ -73,6 +73,8 @@ Zotero.CollectionTreeView.prototype.setTree = function(treebox) var self = this; tree.addEventListener('keypress', function(event) { + if (tree.editingRow != -1) return; // In-line editing active + var key = String.fromCharCode(event.which); if (key == '+' && !(event.ctrlKey || event.altKey || event.metaKey)) {