HTML tree: Don't select all items on Cmd-Shift-A
This commit is contained in:
parent
576b9b7817
commit
7672340819
2 changed files with 11 additions and 4 deletions
|
@ -558,10 +558,14 @@ class VirtualizedTable extends React.Component {
|
|||
this._jsWindow.scrollTo(this._jsWindow.scrollOffset + this._jsWindow.getWindowHeight() - this._rowHeight);
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
// Select All
|
||||
case "a":
|
||||
// i.e. if CTRL/CMD pressed down
|
||||
if (movePivot && this.props.multiSelect) this.selection.rangedSelect(0, this.props.getRowCount()-1, false, true);
|
||||
if (this.props.multiSelect
|
||||
&& !e.shiftKey
|
||||
&& (Zotero.isMac ? (e.metaKey && !e.ctrlKey) : e.ctrlKey)) {
|
||||
this.selection.rangedSelect(0, this.props.getRowCount()-1, false, true);
|
||||
}
|
||||
break;
|
||||
|
||||
case " ":
|
||||
|
|
|
@ -875,7 +875,10 @@ var ItemTree = class ItemTree extends LibraryTree {
|
|||
const _promise = Zotero.Tags.toggleItemsListTags(items, colorData.name);
|
||||
return false;
|
||||
}
|
||||
else if (event.key == 'a' && (Zotero.isMac ? event.metaKey : event.ctrlKey)) {
|
||||
else if (event.key == 'a'
|
||||
&& !event.altKey
|
||||
&& !event.shiftKey
|
||||
&& (Zotero.isMac ? (event.metaKey && !event.ctrlKey) : event.ctrlKey)) {
|
||||
if (!this.collectionTreeRow.isPublications()) {
|
||||
this.expandMatchParents(this._searchParentIDs);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue