v-hotkey
Import
import { vHotkey } from '@feugene/granularity/directives/hotkey'Exports
HotkeyHandlertypetype HotkeyHandler = (event: KeyboardEvent) => voidHotkeyEntrytypetype HotkeyEntryHotkeyMaptypetype HotkeyMap = Record<string, HotkeyEntry>HotkeyScopetypetype HotkeyScope = 'global' | 'element'HotkeyBindingValuetypetype HotkeyBindingValuevHotkeyconstconst vHotkey: Directive<HTMLElement, HotkeyBindingValue>
Descriptions come from the library in Russian and are not shown here — translating them is a decision of its own, see ADR-0003.
Library prose
Source: @feugene/granularity 0.41.0, package.json#exports and dist/types