API / @aionbuilders/nabu/extend

isReservedChord

Function Stability: stable

Whether a chord is reserved by the browser or the OS (close tab, reload, quit...) and so refused when a command declares it.

Related guide: Commands and keymap →

Signature

TypeScript
import { isReservedChord } from '@aionbuilders/nabu/extend';
TypeScript
function isReservedChord(chord: Chord, platform: Platform): boolean

Parameters

Parameters of isReservedChord
ParameterTypeDescription
chordChordn/a
platformPlatformn/a

Returns

boolean

whether the browser / OS owns this chord

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