Skip to content

Commit

Permalink
feat: add CTRL key for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
driaug authored Sep 14, 2021
1 parent a7b3a07 commit 8a82a90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InternalKeyboardEvents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function InternalKeyboardEvents() {

React.useEffect(() => {
function handleKeyDown(event: KeyboardEvent) {
if (event.metaKey && event.key === "k") {
if ((event.metaKey || event.ctrlKey) && event.key === "k") {
event.preventDefault();
query.setVisualState((vs) => {
if (vs === VisualState.hidden || vs === VisualState.animatingOut) {
Expand Down

1 comment on commit 8a82a90

@vercel
Copy link

@vercel vercel bot commented on 8a82a90 Sep 14, 2021

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:

Please sign in to comment.