Enable numeric first-character navigation in menus
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// Maintainer-controlled web client version.
|
||||
// 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.
|
||||
window.CHGRID_TIME_ZONE = "America/Detroit";
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user