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:
Bogdan Abaev 2024-01-12 16:57:10 -05:00 committed by Dan Stillman
parent 2c97a7a03e
commit 99ab42a674

View file

@ -2491,6 +2491,9 @@ var CollectionTree = class CollectionTree extends LibraryTree {
focusedRowMatchesFilter() {
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;
}