mirror of
https://github.com/heyman/heynote.git
synced 2025-06-28 13:31:38 +02:00
Fix issue of Enter keystroke within New Note dialog being picked up by Editor (in web app)
This commit is contained in:
parent
42c71dad7b
commit
fb58bb6f36
@ -92,6 +92,8 @@
|
||||
this.$emit("close")
|
||||
event.preventDefault()
|
||||
} if (event.key === "Enter") {
|
||||
// without preventDefault, the editor will receive a Enter keydown event on webapp (not in Electron)
|
||||
event.preventDefault()
|
||||
this.submit()
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user