mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Remove dashboard keyboard listener (#13102)
This commit is contained in:
parent
4dce8ff60a
commit
4133e454c4
@ -31,7 +31,6 @@ import { cn } from "@/lib/utils";
|
|||||||
import { LivePlayerError, LivePlayerMode } from "@/types/live";
|
import { LivePlayerError, LivePlayerMode } 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";
|
|
||||||
|
|
||||||
type LiveDashboardViewProps = {
|
type LiveDashboardViewProps = {
|
||||||
cameras: CameraConfig[];
|
cameras: CameraConfig[];
|
||||||
@ -248,18 +247,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"
|
||||||
|
Loading…
Reference in New Issue
Block a user