Skip to content
Snippets Groups Projects
Unverified Commit 3ac2e2bb authored by Christoph Wurst's avatar Christoph Wurst
Browse files

Fix CTRL+Enter shortkey

parent 4ef94784
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,8 @@
class="message-body"
v-autosize
v-model="bodyVal"
v-on:keyup="onInputChanged"
@keyup="onInputChanged"
@keypress="onBodyKeyPress"
:placeholder="t('mail', 'Message …')">{{message}}</textarea>
</div>
<div class="submit-message-wrapper">
......@@ -293,6 +294,12 @@
.catch(console.error.bind(this))
.then(() => console.debug('attachments uploaded'))
},
onBodyKeyPress (event) {
// CTRL+Enter sends the message
if (event.keyCode === 13 && event.ctrlKey) {
return this.onSend()
}
},
onNewToAddr (addr) {
this.onNewAddr(addr, this.selectTo)
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment