Carregando…
Carregando…
Carregando…Registra combinações de teclas (com Ctrl/Meta/Shift/Alt) e dispara um handler por combinação. Ignora INPUT/TEXTAREA/SELECT por padrão.
useKeyPress — aperte ⌘/Ctrl + K
combinação disparada: 0×
$ npx kikitocn add use-key-pressimport { useKeyPress } from "@/components/ui/cn/use-key-press/useKeyPress";
export function useKeyPressExample() {
return (
<useKeyPress />
);
}