Ctrl-enter posts status

This commit is contained in:
shpuld 2017-02-19 01:41:51 +02:00
parent 6dbdd322aa
commit 2639427236

View file

@ -2,7 +2,7 @@
<div class="post-status-form">
<form @submit.prevent="postStatus(newStatus)">
<div class="form-group" >
<textarea v-model="newStatus.status" placeholder="Just landed in L.A." rows="3" class="form-control"></textarea>
<textarea v-model="newStatus.status" placeholder="Just landed in L.A." rows="3" class="form-control" @keyup.ctrl.enter="postStatus(newStatus)"></textarea>
</div>
<div class="attachments">
<div class="attachment" v-for="file in newStatus.files">