Skip to content

Commit

Permalink
Alt+Enterでセカンダリ投稿できるように
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed May 11, 2019
1 parent ae9bd3e commit 3fe9e92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/client/app/desktop/views/components/post-form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ export default Vue.extend({
onKeydown(e) {
if ((e.which == 10 || e.which == 13) && (e.ctrlKey || e.metaKey) && this.canPost) this.post();
if ((e.which == 10 || e.which == 13) && (e.altKey) && this.canPost
&& this.secondaryNoteVisibility != null && this.secondaryNoteVisibility != 'none') this.post(this.secondaryNoteVisibility);
},
onPaste(e) {
Expand Down

0 comments on commit 3fe9e92

Please sign in to comment.