1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Allow "/" when editing code (#1177)

Co-authored-by: Luffy <lufei@php.net>
This commit is contained in:
Antoine Bluchet
2024-12-04 08:16:25 +01:00
committed by GitHub
parent 621bcce3c2
commit 543eab70a4

View File

@@ -294,6 +294,10 @@ const initSearchModal = () => {
// Open when / is pressed
document.addEventListener("keydown", (event) => {
if (event.target.contentEditable === "true") {
return;
}
if (event.key === "/") {
show();
event.preventDefault();