Skip to main content

useHotkeyRegistrations

还没翻译译自英文(tanstack.com)本页 7 段都还没译

function useHotkeyRegistrations(): HotkeyRegistrationsResult;

Defined in: useHotkeyRegistrations.ts:33

Preact hook that reactively reads all hotkey and sequence registrations from the singleton managers.

This is a standalone hook that does NOT require the HotkeysProvider. It subscribes to both HotkeyManager and SequenceManager stores and re-renders when registrations change.

Returns

HotkeyRegistrationsResult

Object with hotkeys and sequences arrays