sforkowany z mirror/social
Merge pull request #785 from StCyr/bugfix/noid/do-not-post-on-enter
FIX: Hitting 'Enter' without the shift key pressed should not post the messagefeature/797/interact-with-remote-item
commit
d82cb4906b
|
@ -49,7 +49,7 @@
|
|||
<vue-tribute :options="tributeOptions">
|
||||
<!-- eslint-disable-next-line vue/valid-v-model -->
|
||||
<div ref="composerInput" v-contenteditable:post.dangerousHTML="canType && !loading" class="message"
|
||||
placeholder="What would you like to share?" :class="{'icon-loading': loading}" @keyup.enter="keyup"
|
||||
placeholder="What would you like to share?" :class="{'icon-loading': loading}" @keyup.prevent.enter="keyup"
|
||||
@tribute-replaced="updatePostFromTribute" />
|
||||
</vue-tribute>
|
||||
<emoji-picker ref="emojiPicker" :search="search" class="emoji-picker-wrapper"
|
||||
|
@ -777,7 +777,7 @@ export default {
|
|||
return data
|
||||
},
|
||||
keyup(event) {
|
||||
if (event.shiftKey) {
|
||||
if (event.shiftKey || event.ctrlKey) {
|
||||
this.createPost(event)
|
||||
}
|
||||
},
|
||||
|
|
Ładowanie…
Reference in New Issue