v-hotkey

Import

import { vHotkey } from '@feugene/granularity/directives/hotkey'

Exports

HotkeyHandlertype
type HotkeyHandler = (event: KeyboardEvent) => void
HotkeyEntrytype
type HotkeyEntry
HotkeyMaptype
type HotkeyMap = Record<string, HotkeyEntry>
HotkeyScopetype
type HotkeyScope = 'global' | 'element'
HotkeyBindingValuetype
type HotkeyBindingValue
vHotkeyconst
const 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

Read it in the repository: docs/directives.md

Source: @feugene/granularity 0.41.0, package.json#exports and dist/types