parent
8e08d08712
commit
bdf658f54c
|
@ -9,7 +9,7 @@
|
||||||
<ComposeContentWarning :realm :contentWarning />
|
<ComposeContentWarning :realm :contentWarning />
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<ComposeInput :realm :text :autoFocus on:postAction="onPostAction()" />
|
<ComposeInput :realm :text :autoFocus on:postAction="doPostStatus()" />
|
||||||
<ComposeLengthGauge :length :overLimit />
|
<ComposeLengthGauge :length :overLimit />
|
||||||
<ComposeToolbar :realm :postPrivacy :media :contentWarningShown :text />
|
<ComposeToolbar :realm :postPrivacy :media :contentWarningShown :text />
|
||||||
<ComposeLengthIndicator :length :overLimit />
|
<ComposeLengthIndicator :length :overLimit />
|
||||||
|
@ -188,10 +188,10 @@
|
||||||
dialogs.showComposeDialog()
|
dialogs.showComposeDialog()
|
||||||
} else {
|
} else {
|
||||||
// else we're actually posting a new toot
|
// else we're actually posting a new toot
|
||||||
this.onPostAction();
|
this.doPostStatus();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onPostAction() {
|
doPostStatus() {
|
||||||
let text = this.get('text')
|
let text = this.get('text')
|
||||||
let media = this.get('media')
|
let media = this.get('media')
|
||||||
let postPrivacyKey = this.get('postPrivacyKey')
|
let postPrivacyKey = this.get('postPrivacyKey')
|
||||||
|
|
|
@ -101,8 +101,8 @@
|
||||||
},
|
},
|
||||||
onKeydown(e) {
|
onKeydown(e) {
|
||||||
let { keyCode } = e
|
let { keyCode } = e
|
||||||
const ctrlPressed =
|
// ctrl or cmd (on macs) was pressed; ctrl-enter means post a toot
|
||||||
e.getModifierState('Control') || e.getModifierState('Meta')
|
const ctrlPressed = e.getModifierState('Control') || e.getModifierState('Meta')
|
||||||
switch (keyCode) {
|
switch (keyCode) {
|
||||||
case 9: // tab
|
case 9: // tab
|
||||||
this.clickSelectedAutosuggestion(e)
|
this.clickSelectedAutosuggestion(e)
|
||||||
|
|
Loading…
Reference in New Issue