ReferenceGestures
useHotkeyShortcut
Hook that reads display and ARIA metadata for a registered Player hotkey
Import
Usage
Look up a registered action to keep a custom control’s visible shortcut and aria-keyshortcuts value synchronized.
The hook subscribes to registration changes and returns HotkeyShortcutDetails: aria for the aria-keyshortcuts value and shortcut for display text. Both are undefined when the player container or action is unavailable, or the action has no registered shortcut; pass value for actions with value-specific registrations.