This commit is contained in:
Qing
2023-12-13 22:56:09 +08:00
parent 354a1280a4
commit 142aa64cc6
19 changed files with 360 additions and 181 deletions

View File

@@ -8,7 +8,7 @@ import {
DialogTitle,
DialogTrigger,
} from "./ui/dialog"
import { useHotkeys } from "react-hotkeys-hook"
import useHotKey from "@/hooks/useHotkey"
interface ShortcutProps {
content: string
@@ -48,7 +48,7 @@ const CmdOrCtrl = () => {
export function Shortcuts() {
const [open, toggleOpen] = useToggle(false)
useHotkeys("h", () => {
useHotKey("h", () => {
toggleOpen()
})