Allow ctrl+enter posting when focused on alt text #33
2 changed files with 7 additions and 0 deletions
|
@ -126,6 +126,9 @@ const Attachment = {
|
||||||
videoTag () {
|
videoTag () {
|
||||||
return this.useModal ? 'button' : 'span'
|
return this.useModal ? 'button' : 'span'
|
||||||
},
|
},
|
||||||
|
statusForm () {
|
||||||
|
return this.$parent.$parent
|
||||||
|
},
|
||||||
...mapGetters(['mergedConfig'])
|
...mapGetters(['mergedConfig'])
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
@ -219,6 +222,9 @@ const Attachment = {
|
||||||
const newHeight = Math.floor(target.scrollHeight - padding * 2)
|
const newHeight = Math.floor(target.scrollHeight - padding * 2)
|
||||||
target.style.height = `${newHeight}px`
|
target.style.height = `${newHeight}px`
|
||||||
this.$emit('resize', newHeight)
|
this.$emit('resize', newHeight)
|
||||||
|
},
|
||||||
|
postStatus (event) {
|
||||||
|
console.log(this.statusForm.postStatus(event, this.statusForm.newStatus))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -255,6 +255,7 @@
|
||||||
:placeholder="$t('post_status.media_description')"
|
:placeholder="$t('post_status.media_description')"
|
||||||
rows="1"
|
rows="1"
|
||||||
cols="1"
|
cols="1"
|
||||||
|
@keydown.ctrl.enter="postStatus()"
|
||||||
@input="resize"
|
@input="resize"
|
||||||
/>
|
/>
|
||||||
<p v-else>
|
<p v-else>
|
||||||
|
|
Loading…
Reference in a new issue