Do not prevent default for Enter

Do not prevent default for "Enter" if search is not visible. Old logic would prevent comment system adding new line using "Enter"
This commit is contained in:
Jinbo Pan 2024-08-15 17:17:03 -07:00
parent 580f36f0de
commit dcde4feef3

View file

@ -73,8 +73,6 @@ document.addEventListener("keydown", function (event) {
} else {
document.activeElement.click();
}
}else{
event.preventDefault();
}
}