Skip to content

Commit

Permalink
remove key listener
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye217 committed Aug 17, 2024
1 parent 398ad2e commit 9ccbe5b
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 } from "@/types/live";
import { FaCompress, FaExpand } from "react-icons/fa";
import { useResizeObserver } from "@/hooks/resize-observer";
import useKeyboardListener from "@/hooks/use-keyboard-listener";
import useCameraLiveMode from "@/hooks/use-camera-live-mode";

type LiveDashboardViewProps = {
Expand Down Expand Up @@ -222,18 +221,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 9ccbe5b

Please sign in to comment.