Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Fix type-to-search crash on undefined event.key

rcourtman9346d2f99dcb
diff --git a/frontend-modern/src/hooks/useTypeToSearch.ts b/frontend-modern/src/hooks/useTypeToSearch.ts
index 8329a8d057..1e19dcc1b1 100644
--- a/frontend-modern/src/hooks/useTypeToSearch.ts
+++ b/frontend-modern/src/hooks/useTypeToSearch.ts
@@ -146,6 +146,7 @@ export const blurFocusedTypeToSearch = (): boolean => {
const handleTypeToSearchKeyDown = (event: KeyboardEvent) => {
if (event.defaultPrevented) return;
+ if (!event.key) return;
if ((event.ctrlKey || event.metaKey) && event.key.toLowerCase() === 'f') {
const match = getActiveEntry((entry) => readEnabled(entry.focusOnShortcut), {