Skip to content

Commit

Permalink
add ctrlKey to raycast demo for windows users
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Oct 27, 2023
1 parent 1f29720 commit 40e7e62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/docs/components/cmdk/raycast/sub-command.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
onMount(() => {
function handleKeydown(e: KeyboardEvent) {
if (e.key === 'k' && e.metaKey) {
if (e.key === 'k' && (e.metaKey || e.ctrlKey)) {
e.preventDefault();
open = true;
}
Expand Down

0 comments on commit 40e7e62

Please sign in to comment.