fix: try to submit and render messages and scroll them into view more
quickly
This commit is contained in:
parent
8f818fc1ee
commit
14a33fc77d
2 changed files with 20 additions and 10 deletions
|
|
@ -195,6 +195,7 @@ function smarten_forms() {
|
|||
form.querySelectorAll("[enter-key-submits]").forEach((element) => {
|
||||
element.addEventListener("keypress", (event) => {
|
||||
if (event.key === "Enter" && !event.shiftKey) {
|
||||
event.preventDefault();
|
||||
form.requestSubmit();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue