Skip to content
Hotkeys API Reference

injectDefaultHotkeysOptions

ts
function injectDefaultHotkeysOptions(): HotkeysProviderOptions;

Defined in: hotkeys-provider.ts:308

Returns the nearest provider's default options as they are when injected. The value doesn't update when signal-driven defaults change. To follow changes, keep injectHotkeysContext() and read its defaultOptions in a computed or effect.

Returns

HotkeysProviderOptions