fix: hot keys updated cmd to meta

This commit is contained in:
spencerwooo
2023-01-26 13:57:22 +08:00
parent 85d0d679bd
commit dd549d9b73
3 changed files with 6 additions and 11 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ const Navbar = () => {
const [searchOpen, setSearchOpen] = useState(false)
const openSearchBox = () => setSearchOpen(true)
useHotkeys(`${os === 'mac' ? 'cmd' : 'ctrl'}+k`, e => {
useHotkeys(`${os === 'mac' ? 'meta' : 'ctrl'}+k`, e => {
openSearchBox()
e.preventDefault()
})