preventing loop-jump

This commit is contained in:
Jinyuan Huang 2023-09-16 10:58:26 +08:00 committed by GitHub
parent ec540a967a
commit ac2840d826
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,13 +235,13 @@ searxng.ready(function () {
case 'down':
next = current.nextElementSibling;
if (next === null) {
next = results[0];
next = current;
}
break;
case 'up':
next = current.previousElementSibling;
if (next === null) {
next = results[results.length - 1];
next = current;
}
break;
case 'bottom':