-
Notifications
You must be signed in to change notification settings - Fork 439
Open
Description
Description
Steps to reproduce
- Go to https://docusaurus.io/
- Focus the search button
- Press Cmd+Opt+I
- See
Deadbeing set as initial query in the search modal.
Expected behavior
The browser devtools should open in that case.
This part will need modification -
docsearch/packages/docsearch-core/src/DocSearch.tsx
Lines 178 to 184 in 7c36039
| const onInput = React.useCallback( | |
| (event: KeyboardEvent): void => { | |
| setDocsearchState('modal-search'); | |
| setInitialQuery(event.key); | |
| }, | |
| [setDocsearchState, setInitialQuery], | |
| ); |
e.key is Dead in Chromium in certain cases (and likely in other browsers too according to MDN, but I wasn't able to reproduce).
It shouldn't intercept stuff when Ctrl or Cmd is held I guess. For example, if the search button is focussed and you try to do Cmd+R for reload, it opens the modal with r typed instead.
Environment
- OS: macOS 26.2
- Browser: Chromium 144.0.7559.96
- DocSearch version: 4.4.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels