API / @aionbuilders/nabu

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

Properties of Chord
PropertyTypeDescription
altbooleann/a
ctrlbooleann/a
keystringn/a
metabooleann/a
shiftbooleann/a

Source: src/lib/utils/keys.js:27