remove key listener

This commit is contained in:
Josh Hawkins 2024-08-17 12:44:55 -05:00
parent 398ad2e6cc
commit 9ccbe5bdc7

View File

@ -31,7 +31,6 @@ import { cn } from "@/lib/utils";
import { LivePlayerError } from "@/types/live"; import { LivePlayerError } from "@/types/live";
import { FaCompress, FaExpand } from "react-icons/fa"; import { FaCompress, FaExpand } from "react-icons/fa";
import { useResizeObserver } from "@/hooks/resize-observer"; import { useResizeObserver } from "@/hooks/resize-observer";
import useKeyboardListener from "@/hooks/use-keyboard-listener";
import useCameraLiveMode from "@/hooks/use-camera-live-mode"; import useCameraLiveMode from "@/hooks/use-camera-live-mode";
type LiveDashboardViewProps = { type LiveDashboardViewProps = {
@ -222,18 +221,6 @@ export default function LiveDashboardView({
[setPreferredLiveModes], [setPreferredLiveModes],
); );
useKeyboardListener(["f"], (key, modifiers) => {
if (!modifiers.down) {
return;
}
switch (key) {
case "f":
toggleFullscreen();
break;
}
});
return ( return (
<div <div
className="scrollbar-container size-full overflow-y-auto px-1 pt-2 md:p-2" className="scrollbar-container size-full overflow-y-auto px-1 pt-2 md:p-2"