Skip to content

Commit

Permalink
Use ctrl+k to focus search
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed Jun 17, 2022
1 parent 7a4c3c3 commit 3bf1ce5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
7 changes: 7 additions & 0 deletions app/codes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -866,3 +866,10 @@ const barLink = () => {
break
}
}

/* Focus search with ctrl+k */
document.addEventListener("keypress", (event) => {
if (event.ctrlKey === true && event.code === "KeyK") {
focusSearch()
}
})
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3bf1ce5

Please sign in to comment.