Skip to content

Commit 543eab7

Browse files
soyukasy-records
andauthored
Allow "/" when editing code (#1177)
Co-authored-by: Luffy <[email protected]>
1 parent 621bcce commit 543eab7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/search.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,10 @@ const initSearchModal = () => {
294294

295295
// Open when / is pressed
296296
document.addEventListener("keydown", (event) => {
297+
if (event.target.contentEditable === "true") {
298+
return;
299+
}
300+
297301
if (event.key === "/") {
298302
show();
299303
event.preventDefault();

0 commit comments

Comments
 (0)