Disable expand/collapse shortcuts in coll. tree when in-line editing
This commit is contained in:
parent
6f811cbbd0
commit
27502a60b2
1 changed files with 2 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue