@tanstack/react-hotkeys
Version:
React adapter for TanStack Hotkeys
15 lines (13 loc) • 512 B
JavaScript
import { formatForAria } from "@tanstack/hotkeys";
// src/formatForAria.ts
/**
* Formats a hotkey for `aria-keyshortcuts`, without the provider's platform or
* the user's keyboard layout.
*
* @deprecated Use `useFormatForAria()` in components. It returns this
* function with the provider's platform and the user's keyboard layout filled
* in. Outside a component, keep calling this function and pass `platform`
* yourself.
*/
const formatForAria$1 = formatForAria;
export { formatForAria$1 as formatForAria };