Skip to content

Commit

Permalink
Remove dashboard keyboard listener (#13102)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye217 authored Aug 15, 2024
1 parent 4dce8ff commit 4133e45
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions web/src/views/live/LiveDashboardView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 4133e45

Please sign in to comment.