UX: textfields now submit on Ctrl+Enter instead of Enter
This commit is contained in:
parent
fb46381d10
commit
4fdd586a3c
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@
|
|||
}
|
||||
|
||||
function onKeyPress(e: KeyboardEvent) {
|
||||
if (e.key === "Enter") {
|
||||
if (e.key === "Enter" && (!validator.textArea || e.ctrlKey)) {
|
||||
e.stopPropagation()
|
||||
e.preventDefault()
|
||||
dispatch("submit")
|
||||
|
|
Loading…
Reference in a new issue