Skip to content

Commit

Permalink
allow "/" when editing code
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Dec 3, 2024
1 parent 9d71cdb commit 35975ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,10 @@ const initSearchModal = () => {

// Open when / is pressed
document.addEventListener("keydown", (event) => {
if (event.target.contentEditable) {
return;
}

if (event.key === "/") {
show();
event.preventDefault();
Expand Down

0 comments on commit 35975ad

Please sign in to comment.