Prevent trash row from receiving focus on Enter in filter box
Prevent trash/duplicated/unfiled/etc. rows from getting focused on Enter if it is the currently selected collection row that technically passes the filter and Enter is pressed.
This commit is contained in:
parent
2c97a7a03e
commit
99ab42a674
1 changed files with 3 additions and 0 deletions
|
@ -2491,6 +2491,9 @@ var CollectionTree = class CollectionTree extends LibraryTree {
|
||||||
|
|
||||||
focusedRowMatchesFilter() {
|
focusedRowMatchesFilter() {
|
||||||
let row = this.getRow(this.selection.focused);
|
let row = this.getRow(this.selection.focused);
|
||||||
|
if (row.isDuplicates() || row.isUnfiled() || row.isRetracted() || row.isTrash() || row.isPublications()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return this._matchesFilter(row.ref).matchesFilter;
|
return this._matchesFilter(row.ref).matchesFilter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue