Skip to content

NVR with realtime local object detection for IP cameras

Prevent ptz keyboard shortcuts from reopening presets menu (#12079)

Josh Hawkinsa60ffe06aca2
diff --git a/web/src/views/live/LiveCameraView.tsx b/web/src/views/live/LiveCameraView.tsx
index bee6077da2..f75a7186ac 100644
--- a/web/src/views/live/LiveCameraView.tsx
+++ b/web/src/views/live/LiveCameraView.tsx
@@ -626,7 +626,10 @@ function PtzControlPanel({
<BsThreeDotsVertical />
</Button>
</DropdownMenuTrigger>
- <DropdownMenuContent className="scrollbar-container max-h-[40dvh] overflow-y-auto">
+ <DropdownMenuContent
+ className="scrollbar-container max-h-[40dvh] overflow-y-auto"
+ onCloseAutoFocus={(e) => e.preventDefault()}
+ >
{ptz?.presets.map((preset) => {
return (
<DropdownMenuItem