Skip to content

Commit

Permalink
Add new search focus option for inserter panel
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Aug 9, 2024
1 parent db35abd commit 991bee9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/reference-guides/data/data-core-editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,10 @@ _Related_

- hasSelectedInnerBlock in core/block-editor store.

### inserterSearchFocused

Undocumented declaration.

### inSomeHistory

> **Deprecated** since Gutenberg 9.7.0.
Expand Down
4 changes: 4 additions & 0 deletions packages/editor/src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -1302,6 +1302,10 @@ export function isInserterOpened( state ) {
return !! state.blockInserterPanel;
}

export function inserterSearchFocused( state ) {
return !! state.blockInserterPanel?.focusSearch;
}

/**
* Returns the current editing mode.
*
Expand Down

0 comments on commit 991bee9

Please sign in to comment.