Redoing The Search Field

1 · Sam · Oct. 1, 2021, midnight
As I said in issue #8, I wanted to be able to use ⌘F / ⌃F to search on the page. However, at the time of writing, it selects the search field. This means that I needed to change the search field to have a different keyboard shortcut, so I decided to use / (as does GitHub). In that GitHub issue, I showed the current code: <script type="text/javascript"> window.addEventListener("keydown", function(e){ if ((e.ctrlKey || e.metaKey) && e.keyCode === 70) { //⌘F or ⌃F (find on page)