Skip to content

Commit

Permalink
fix: remove CMD key
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Apr 15, 2020
1 parent 8a4d57f commit 9044e56
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions src/hooks/use-key-bindings.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useState, useEffect } from 'react'
import isMac from '@/lib/is-mac'

const isCtrl = e => (isMac ? e.metaKey : e.ctrlKey)
const isCtrl = e => e.ctrlKey

// https://keycode.info
export default (initialKeyBindings = {}, eventListener = 'keydown') => {
Expand Down
2 changes: 0 additions & 2 deletions src/lib/is-mac.js

This file was deleted.

1 comment on commit 9044e56

@vercel
Copy link

@vercel vercel bot commented on 9044e56 Apr 15, 2020

Choose a reason for hiding this comment

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

Please sign in to comment.