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

This commit is contained in:
Aurimas Vinckevicius 2015-02-03 14:43:52 -06:00
parent 6f811cbbd0
commit 27502a60b2

View file

@ -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)) {