Merge pull request #364 from myl7/ctrl-k
This commit is contained in:
commit
920e83ef2e
1 changed files with 4 additions and 1 deletions
|
@ -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 = () => {
|
||||
|
|
Loading…
Reference in a new issue