no find-as-you-type on 0 keypress in itemTree (#5564)

This commit is contained in:
abaevbog 2025-10-06 19:32:13 -07:00 • committed by GitHub
parent fefad8a9e3
commit 59742ccc8f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -997,7 +997,9 @@ var ItemTree = class ItemTree extends LibraryTree {
// When 0 is pressed, remove all colored tags
if (position == -1) {
let items = this.getSelectedItems();
return Zotero.Tags.removeColoredTagsFromItems(items);
Zotero.Tags.removeColoredTagsFromItems(items);
// Disable find-as-you-type for 0 keypress
return false;
}
let colorData = Zotero.Tags.getColorByPosition(libraryID, position);
// If a color isn't assigned to this number or any