Skip to content

Self-hosted homelab infrastructure visualizer — interactive network diagram with live status monitoring

allow the enter key to apply the currently selected style

findthelorax18f9bb7bdf0f
diff --git a/frontend/src/components/modals/ThemeModal.tsx b/frontend/src/components/modals/ThemeModal.tsx
index 5b50979..27aa58c 100644
--- a/frontend/src/components/modals/ThemeModal.tsx
+++ b/frontend/src/components/modals/ThemeModal.tsx
@@ -110,6 +110,12 @@ export function ThemeModal({ open, onClose }: ThemeModalProps) {
}
const handleCardKeyDown = (index: number) => (event: KeyboardEvent<HTMLButtonElement>) => {
+ if (event.key === 'Enter') {
+ event.preventDefault()
+ handleApply()
+ return
+ }
+
if (event.key !== 'ArrowLeft' && event.key !== 'ArrowRight') return
event.preventDefault()