Svelte <Inspect {value} />

InspectHotkeys

type InspectHotkeys = {
  collapseTop: string | false;
  expandTop: string | false;
  search: string | false;
};

Hotkeys configuration using tinykeys syntax.

Note: The string '$mod' means “command” on macOS and “ctrl” on Windows / Linux

Example

<Inspect hotkeys={{
 expandTop: 'Shift+$mod+ArrowUp', // override
 collapseTop: false // disable
 // search: '' // keeps default if omitted
}} />

See

InspectOptions.hotkeys

Properties

collapseTop

collapseTop: string | false;

Hotkey for collapsing all top level nodes

Default

'$mod+ArrowLeft'

expandTop

expandTop: string | false;

Hotkey for expanding all top level nodes

Default

'$mod+ArrowRight'

search: string | false;

Hotkey for focusing search field if search is enabled

Default

'Shift+$mod+F'