Skip to content

INoteToolbarApi.Interface.NtbKeyBinding.md

Chris Gurney edited this page Apr 2, 2026 · 3 revisions

obsidian-note-toolbar / INoteToolbarApi / NtbKeyBinding

Properties

action

action: "navigateNext" | "navigatePrev" | "select" | "dismiss" | "autofill" | (() => boolean)

The action to perform when this binding is triggered.

  • navigateNext: move to the next suggestion
  • navigatePrev: move to the previous suggestion
  • select: confirm the current suggestion
  • dismiss: close the suggester
  • autofill: fill the input with the current suggestion without selecting

key

key: string

The key that triggers this binding, as a KeyboardEvent.key value (e.g. "Tab", "Enter", "ArrowDown").


modifiers?

optional modifiers?: Modifier[] | null

Modifier keys that must be held for this binding to trigger. Use null if no modifier is required.

See

Modifier

Clone this wiki locally