We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac859d5 commit 8231de0Copy full SHA for 8231de0
1 file changed
js/search.js
@@ -294,7 +294,13 @@ const initSearchModal = () => {
294
295
// Open when / is pressed
296
document.addEventListener("keydown", (event) => {
297
- if (event.target.contentEditable === "true") {
+ const target = event.target;
298
+
299
+ if (
300
+ target.contentEditable === "true" ||
301
+ target.tagName === "INPUT" ||
302
+ target.tagName === "TEXTAREA"
303
+ ) {
304
return;
305
}
306
0 commit comments