Chord
Type Stability: stable
A parsed key chord: a key and its four modifiers (Mod is resolved to ctrl or meta for the platform).
Definition
TypeScript
import type { Chord } from '@aionbuilders/nabu';TypeScript
type Chord = {
alt: boolean;
ctrl: boolean;
key: string;
meta: boolean;
shift: boolean;
}Properties
| Property | Type | Description |
|---|---|---|
alt | boolean | n/a |
ctrl | boolean | n/a |
key | string | n/a |
meta | boolean | n/a |
shift | boolean | n/a |
Source: src/lib/utils/keys.js:27