Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prevent submitting the message when the user is composing
Signed-off-by: Jim Lin <[email protected]>
  • Loading branch information
jimlinntu committed Jul 4, 2021
commit cbfabc9e81ef8357d0275d456b76a244a3854c92
6 changes: 6 additions & 0 deletions src/components/NewMessageForm/AdvancedInput/AdvancedInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,12 @@ export default {
return
}

// If the user is stil composing by an input method,
// we should not submit the message
if (event.isComposing) {
return
}

// TODO: add support for CTRL+ENTER new line
if (!(event.shiftKey)) {
event.preventDefault()
Expand Down