Skip to main content
cngx-src documentation

withPaletteShortcut

Functionui/command-palettev0.1.0

projects/ui/command-palette/config/command-palette-config.ts

Description#

Set the combo that opens the palette (parsed via parseKeyCombo, e.g. 'mod+k', 'mod+shift+p'). Applies app-wide via provideCommandPaletteConfig or per-scope via provideCommandPaletteConfigAt. A per-instance [openShortcut] input still wins over this.

Signature#

withPaletteShortcut(combo: string)

Parameters#

@paramcombostring

Returns#

CngxCommandPaletteConfigFeature