summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/app/desktop/views/components/post-form.vue2
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) {