API / @aionbuilders/nabu/extend

hasCommandModifier

Function Stability: stable

Whether the chord carries a modifier that makes it a shortcut rather than typing: Ctrl, Alt or Meta. Shift alone does not (Shift+letter is a capital letter).

Related guide: Commands and keymap →

Signature

TypeScript
import { hasCommandModifier } from '@aionbuilders/nabu/extend';
TypeScript
function hasCommandModifier(chord: Chord): boolean

Parameters

Parameters of hasCommandModifier
ParameterTypeDescription
chordChordn/a

Returns

boolean

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