Skip to content

Commit

Permalink
Update src/components/search/SearchBar.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
devsargam authored Sep 23, 2024
1 parent 5d89e79 commit 80b02d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/search/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function SearchBar() {
const handleKeyPress = (event: KeyboardEvent) => {
switch (event.code) {
case 'KeyK':
if (event.ctrlKey) {
if (event.ctrlKey || e.metaKey) {
event.preventDefault();
setDialogOpen((prev) => !prev);
}
Expand Down

0 comments on commit 80b02d1

Please sign in to comment.