fixup minor style nitpicks

[skip ci]
This commit is contained in:
Nolan Lawson 2018-04-11 20:00:43 -07:00
parent 8e08d08712
commit bdf658f54c
2 changed files with 5 additions and 5 deletions

View File

@ -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')

View File

@ -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)