HotkeysDocsContext API
This context is responsible for storing the global hotkeys.
This makes life easier when you need to access the hotkeys for some reason.
Types​
HotkeysDocsContextType
​
export type HotkeysDocsContextType = {
hotkeysDocs: Hotkey;
setHotkeysDocs: React.Dispatch<React.SetStateAction<Hotkey[]>>;
};
Usage​
const { setHotkeysDocs, hotkeysDocs } = useHotkeysDocsContext();