diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-06-06 09:50:17 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-06 09:50:17 +0900 |
| commit | a0ec6b8ea7f358e6d5ab79c0f1091f09b8b065c5 (patch) | |
| tree | eda41bd561e3decebdcb77b7f70a0dc2b12d69da /src | |
| parent | Update README.md (diff) | |
| parent | fix: validate post's text with Ctrl+Enter on PC. (diff) | |
| download | misskey-a0ec6b8ea7f358e6d5ab79c0f1091f09b8b065c5.tar.gz misskey-a0ec6b8ea7f358e6d5ab79c0f1091f09b8b065c5.tar.bz2 misskey-a0ec6b8ea7f358e6d5ab79c0f1091f09b8b065c5.zip | |
Merge pull request #1678 from 2vg/patch-2
fix: validate post's text with Ctrl+Enter on PC.
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/app/desktop/views/components/post-form.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/app/desktop/views/components/post-form.vue b/src/client/app/desktop/views/components/post-form.vue index 7b2adfe707..ac9b7bcede 100644 --- a/src/client/app/desktop/views/components/post-form.vue +++ b/src/client/app/desktop/views/components/post-form.vue @@ -209,7 +209,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) && canPost) this.post(); }, onPaste(e) { |