diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-07-21 02:18:40 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-07-21 02:18:40 +0900 |
| commit | 539f307500c10c8d94d22684e9e7a78aaa98acc7 (patch) | |
| tree | 1a36a3509c987ec3327f55354c91bcffdf5c6ba9 | |
| parent | Improve log (diff) | |
| parent | Merge pull request #1940 from acid-chicken/acid-chicken-patch-1 (diff) | |
| download | sharkey-539f307500c10c8d94d22684e9e7a78aaa98acc7.tar.gz sharkey-539f307500c10c8d94d22684e9e7a78aaa98acc7.tar.bz2 sharkey-539f307500c10c8d94d22684e9e7a78aaa98acc7.zip | |
Merge branch 'master' of https://github.com/syuilo/misskey
| -rw-r--r-- | .vscode/extensions.json | 12 | ||||
| -rw-r--r-- | src/client/app/common/views/components/messaging-room.form.vue | 2 | ||||
| -rw-r--r-- | src/client/app/desktop/views/components/post-form.vue | 2 | ||||
| -rw-r--r-- | src/client/app/desktop/views/widgets/post-form.vue | 2 |
4 files changed, 15 insertions, 3 deletions
diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000000..36cfce106e --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,12 @@ +{ + "recommendations": [ + "ducksoupdev.vue2", + "editorconfig.editorconfig", + "eg2.tslint", + "eg2.vscode-npm-script", + "hollowtree.vue-snippets", + "ms-vscode.typescript-javascript-grammar", + "octref.vetur", + "sysoev.language-stylus" + ] +} diff --git a/src/client/app/common/views/components/messaging-room.form.vue b/src/client/app/common/views/components/messaging-room.form.vue index 050906cf44..b6ca902660 100644 --- a/src/client/app/common/views/components/messaging-room.form.vue +++ b/src/client/app/common/views/components/messaging-room.form.vue @@ -119,7 +119,7 @@ export default Vue.extend({ }, onKeypress(e) { - if ((e.which == 10 || e.which == 13) && e.ctrlKey) { + if ((e.which == 10 || e.which == 13) && e.ctrlKey && this.canSend) { this.send(); } }, diff --git a/src/client/app/desktop/views/components/post-form.vue b/src/client/app/desktop/views/components/post-form.vue index aaec36ed37..8b1fd3b8ca 100644 --- a/src/client/app/desktop/views/components/post-form.vue +++ b/src/client/app/desktop/views/components/post-form.vue @@ -244,7 +244,7 @@ export default Vue.extend({ }, onKeydown(e) { - if ((e.which == 10 || e.which == 13) && (e.ctrlKey || e.metaKey)) this.post(); + if ((e.which == 10 || e.which == 13) && (e.ctrlKey || e.metaKey) && this.canPost) this.post(); }, onPaste(e) { diff --git a/src/client/app/desktop/views/widgets/post-form.vue b/src/client/app/desktop/views/widgets/post-form.vue index 3c4ade0e81..618d19efc4 100644 --- a/src/client/app/desktop/views/widgets/post-form.vue +++ b/src/client/app/desktop/views/widgets/post-form.vue @@ -45,7 +45,7 @@ export default define({ this.save(); }, onKeydown(e) { - if ((e.which == 10 || e.which == 13) && (e.ctrlKey || e.metaKey)) this.post(); + if ((e.which == 10 || e.which == 13) && (e.ctrlKey || e.metaKey) && !this.posting && this.text) this.post(); }, post() { this.posting = true; |