Enable numeric first-character navigation in menus

This commit is contained in:
Jage9
2026-02-27 21:17:22 -05:00
parent 3c5e2b1aaa
commit 99d2b3c822
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ export function findNextIndexByInitial<T>(
key: string,
labelFor: (entry: T) => string,
): number {
if (entries.length === 0 || key.length !== 1 || !/[a-z]/i.test(key)) {
if (entries.length === 0 || key.length !== 1 || !/[a-z0-9]/i.test(key)) {
return -1;
}
const target = key.toLowerCase();