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

@@ -1,5 +1,5 @@
// Maintainer-controlled web client version. // Maintainer-controlled web client version.
// Format: YYYY.MM.DD Rn (example: 2026.02.20 R2) // Format: YYYY.MM.DD Rn (example: 2026.02.20 R2)
window.CHGRID_WEB_VERSION = "2026.02.27 R301"; window.CHGRID_WEB_VERSION = "2026.02.27 R302";
// Optional display timezone for timestamps. Falls back to America/Detroit if unset/invalid. // Optional display timezone for timestamps. Falls back to America/Detroit if unset/invalid.
window.CHGRID_TIME_ZONE = "America/Detroit"; window.CHGRID_TIME_ZONE = "America/Detroit";

View File

@@ -18,7 +18,7 @@ export function findNextIndexByInitial<T>(
key: string, key: string,
labelFor: (entry: T) => string, labelFor: (entry: T) => string,
): number { ): 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; return -1;
} }
const target = key.toLowerCase(); const target = key.toLowerCase();