Skip to content

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

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

InspectOptions.hotkeys

collapseTop: string | false

Hotkey for collapsing all top level nodes

'$mod+ArrowLeft'

expandTop: string | false

Hotkey for expanding all top level nodes

'$mod+ArrowRight'

search: string | false

Hotkey for focusing search field if search is enabled

'Shift+$mod+F'