This commit is contained in:
Timothy Jaeryang Baek 2025-08-08 20:58:52 +04:00
parent 95f9d69e9a
commit 34689e37f8

View file

@ -401,8 +401,10 @@
show = false;
return; // dont need to scroll on selection
} else if (e.code === 'ArrowDown') {
e.stopPropagation();
selectedModelIdx = Math.min(selectedModelIdx + 1, filteredItems.length - 1);
} else if (e.code === 'ArrowUp') {
e.stopPropagation();
selectedModelIdx = Math.max(selectedModelIdx - 1, 0);
} else {
// if the user types something, reset to the top selection.