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): booleanParameters
| Parameter | Type | Description |
|---|---|---|
chord | Chord | n/a |
Returns
boolean
Source: src/lib/utils/keys.js:173