Update post-form.vue

This commit is contained in:
Acid Chicken (硫酸鶏) 2018-07-21 02:06:49 +09:00 committed by GitHub
parent c3258b1115
commit 02b4e2cc7e

View File

@ -244,7 +244,7 @@ export default Vue.extend({
}, },
onKeydown(e) { 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) { onPaste(e) {