Skip to content

Fix: Prevent calling onClose() when shiftKey, ctrlKey or metaKey is pressed#1870

Merged
shortcuts merged 6 commits into
algolia:mainfrom
bojanrajh:allow-keyboard-click-modifiers
Apr 26, 2023
Merged

Fix: Prevent calling onClose() when shiftKey, ctrlKey or metaKey is pressed#1870
shortcuts merged 6 commits into
algolia:mainfrom
bojanrajh:allow-keyboard-click-modifiers

Conversation

@bojanrajh

Copy link
Copy Markdown
Contributor

This PR checks for presence of shiftKey, ctrlKey or metaKey when clicking the result so users can open multiple search results without re-opening the search modal.

@netlify

netlify Bot commented Apr 26, 2023

Copy link
Copy Markdown

‼️ Deploy request for docsearch rejected.

Name Link
🔨 Latest commit 9455390

@francoischalifour francoischalifour left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks–that's a nice UX improvement!

Comment thread packages/docsearch-react/src/DocSearchModal.tsx Outdated
Comment thread packages/docsearch-react/src/DocSearchModal.tsx Outdated

@shortcuts shortcuts left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lovely! thanks :)

@francoischalifour francoischalifour left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@shortcuts shortcuts merged commit b9a3899 into algolia:main Apr 26, 2023
@shortcuts

Copy link
Copy Markdown
Member

releasing here #1871

@bojanrajh

Copy link
Copy Markdown
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants