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

View File

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