tuil
ReferencePackages@mwillbanks/tuil-hotkeysAPI

useHotkeys

function exported by @mwillbanks/tuil-hotkeys.

View rawEdit

function

Public function exported by @mwillbanks/tuil-hotkeys.

export function useHotkeys(
  bindings: Readonly<Record<string, HotkeyBinding["handler"]>>,
  options: Omit<HotkeyBinding, "keys" | "handler"> = {},
): void;

Members

This declaration has no public members.

Parameters

MemberTypeRequiredDescriptionRelated types
bindingsReadonly<Record<string, HotkeyBinding["handler"]>>YesSupplies the bindings value as Readonly<Record<string, HotkeyBinding["handler"]>>.HotkeyBinding
optionsOmit<HotkeyBinding, "keys" | "handler">NoSupplies the options value as Omit<HotkeyBinding, "keys" | "handler">.HotkeyBinding

Returns

void — Returns a value that satisfies void.

Related types: —

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-hotkeys

On this page