diff --git a/docs/content/2.composables/1.define-shortcuts.md b/docs/content/2.composables/1.define-shortcuts.md index 567c378c..b9491bdd 100644 --- a/docs/content/2.composables/1.define-shortcuts.md +++ b/docs/content/2.composables/1.define-shortcuts.md @@ -95,27 +95,6 @@ defineShortcuts({ ``` _`enter` shortcut will only trigger when `queryInput` is focused._ -### `whenever` - -Prop: `whenever?: WatchSource[]` - -`whenever` allows to add constraints on the shortcut triggering behavior. This array can contain `Ref`, `ComputedRef` or `() => boolean`. - -```ts -defineShortcuts({ - meta_k: { - usingInput: true, - handler: () => { isOpen.value = !isOpen.value } - }, - escape: { - usingInput: true, - whenever: [isOpen], - handler: () => { isOpen.value = false } - } -}) -``` -_`escape` shortcut will only trigger when `isOpen` is `true`._ - ### Simple shortcut In case the shortcut does not need any config, it can be written as a function.