Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
443 B
4
Indexable
Never
    useEffect(() => {
        const shortcutHandler = (ev: KeyboardEvent) => {
            console.log(ev.altKey, ev.ctrlKey, ev.code, ev.shiftKey, ev);
            if (ev.altKey && ev.ctrlKey && ev.code === "KeyC" && ev.shiftKey) {
               
            }
        };
        document.addEventListener("keydown", shortcutHandler, false);
        return () => document.removeEventListener("keydown", shortcutHandler);
    }, []);