fix home button in search

This commit is contained in:
Cory LaViska
2021-09-09 09:23:45 -04:00
parent 1f95c6ca6e
commit 6cbe2e288b

View File

@@ -192,7 +192,7 @@
nextEl = items[Math.min(items.length - 1, index + 1)];
break;
case 'Home':
nextEl = items[items.length > 0 ? 1 : 0];
nextEl = items[0];
break;
case 'End':
nextEl = items[items.length - 1];