Lines Matching refs:currentIndex
10 let currentIndex = -1;
144 currentIndex = 0;
145 highlightResult(currentIndex);
154 currentIndex = index;
178 if (currentIndex < resultsDiv.children.length - 1) {
179 currentIndex++;
180 highlightResult(currentIndex);
184 if (currentIndex > 0) {
185 currentIndex--;
186 highlightResult(currentIndex);
190 if (currentIndex >= 0) {
191 const selected = resultsDiv.children[currentIndex];