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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user