1
0
forked from mirror/misskey

チャットでCmd+Enterできないのを修正 (#6614)

This commit is contained in:
rinsuki 2020-08-01 21:50:21 +09:00 committed by GitHub
parent e93c06cd00
commit fb7c4ee21a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,7 +151,7 @@ export default Vue.extend({
},
onKeypress(e) {
if ((e.which == 10 || e.which == 13) && e.ctrlKey && this.canSend) {
if ((e.which == 10 || e.which == 13) && (e.ctrlKey || e.metaKey) && this.canSend) {
this.send();
}
},