Skip to content

Commit

Permalink
Merge pull request #12 from HoomanHQ/main
Browse files Browse the repository at this point in the history
Fix: docs-search shortcut
  • Loading branch information
HoomanHQ authored Feb 7, 2024
2 parents fda2219 + 1907b42 commit c061512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/docs/search-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default function SearchDialog({ currentPath }: { currentPath: string }) {

useEffect(() => {
const handleKeyDown = (event: KeyboardEvent) => {
if (event.key === "k" && event.ctrlKey) {
if (event.key === "k" && (event.ctrlKey || event.metaKey)) {
event.preventDefault();
openModal();
}
Expand Down

0 comments on commit c061512

Please sign in to comment.