UNPKG

@tanstack/react-hotkeys

Version:

React adapter for TanStack Hotkeys

15 lines (13 loc) • 520 B
import { formatForDisplay } from "@tanstack/hotkeys"; // src/formatForDisplay.ts /** * Formats a hotkey as a label, without the provider's platform or the user's * keyboard layout. * * @deprecated Use `useFormatForDisplay()` 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 formatForDisplay$1 = formatForDisplay; export { formatForDisplay$1 as formatForDisplay };