fix: validate post's text with Ctrl+Enter on PC.

This commit is contained in:
momf 2018-06-06 09:46:33 +09:00 committed by GitHub
parent 143b032ad6
commit 3d3277f581

View File

@ -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) {