Update messaging-room.form.vue

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

View file

@ -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();
}
},