Skip to content

NVR with realtime local object detection for IP cameras

Remove dashboard keyboard listener (#13102)

Josh Hawkins4133e454c41d
diff --git a/web/src/views/live/LiveDashboardView.tsx b/web/src/views/live/LiveDashboardView.tsx
index a91afb356b..00c0462243 100644
--- a/web/src/views/live/LiveDashboardView.tsx
+++ b/web/src/views/live/LiveDashboardView.tsx
@@ -31,7 +31,6 @@ import { cn } from "@/lib/utils";
import { LivePlayerError, LivePlayerMode } from "@/types/live";
import { FaCompress, FaExpand } from "react-icons/fa";
import { useResizeObserver } from "@/hooks/resize-observer";
-import useKeyboardListener from "@/hooks/use-keyboard-listener";
type LiveDashboardViewProps = {
cameras: CameraConfig[];
@@ -248,18 +247,6 @@ export default function LiveDashboardView({
[setPreferredLiveModes],
);
- useKeyboardListener(["f"], (key, modifiers) => {
- if (!modifiers.down) {
- return;
- }
-
- switch (key) {
- case "f":
- toggleFullscreen();
- break;
- }
- });
-
return (
<div
className="scrollbar-container size-full overflow-y-auto px-1 pt-2 md:p-2"