Skip to content

Commit

Permalink
docs: update dialog example (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
João Pedro Magalhães authored May 15, 2023
1 parent 563c2bd commit db1e29a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ const CommandMenu = () => {
// Toggle the menu when ⌘K is pressed
React.useEffect(() => {
const down = (e) => {
if (e.key === 'k' && e.metaKey) {
if (e.key === 'k' && (e.metaKey || e.ctrlKey)) {
e.preventDefault()
setOpen((open) => !open)
}
}
Expand Down

1 comment on commit db1e29a

@vercel
Copy link

@vercel vercel bot commented on db1e29a May 15, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

cmdk-website – ./

cmdk-website-git-main-paco.vercel.app
cmdk-website-paco.vercel.app
cmdk.vercel.app
cmdk.paco.me

Please sign in to comment.