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