Update messaging-room.form.vue

This commit is contained in:
Acid Chicken (硫酸鶏) 2018-07-21 02:07:50 +09:00 committed by GitHub
parent 69593994ef
commit ae68e6372c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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