From d9463daa66c453ba00f1c8751d532b36150774d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Fri, 22 Apr 2022 10:58:25 +0300 Subject: [PATCH] HTML Tree: Search by typing loops instead of starting from beginning Closes #2559 --- chrome/content/zotero/components/virtualized-table.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/components/virtualized-table.jsx b/chrome/content/zotero/components/virtualized-table.jsx index c6c2a63111..264a777e4c 100644 --- a/chrome/content/zotero/components/virtualized-table.jsx +++ b/chrome/content/zotero/components/virtualized-table.jsx @@ -637,7 +637,7 @@ class VirtualizedTable extends React.Component { } } else { - for (let i = 0; i < rowCount; i++) { + for (let i = this.selection.focused + 1; i == this.selection.focused; i = (i + 1) % rowCount) { let rowString = this.props.getRowString(i); if (rowString.toLowerCase().indexOf(this._typingString) == 0) { if (i != this.selection.focused) {