Skip to content

Commit

Permalink
Prevent ptz keyboard shortcuts from reopening presets menu
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye217 committed Jun 20, 2024
1 parent 9f81ce2 commit 49bfad7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/src/views/live/LiveCameraView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 49bfad7

Please sign in to comment.