diff --git a/components/Navbar.tsx b/components/Navbar.tsx index a2d6236..49fde9c 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -23,7 +23,10 @@ const Navbar = () => { const [searchOpen, setSearchOpen] = useState(false) const openSearchBox = () => setSearchOpen(true) - useHotkeys(`${os === 'mac' ? 'cmd' : 'ctrl'}+k`, openSearchBox) + useHotkeys(`${os === 'mac' ? 'cmd' : 'ctrl'}+k`, e => { + openSearchBox() + e.preventDefault() + }) useEffect(() => { const storedToken = () => {