mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-01 23:55:58 +09:00
fix: validate post's text with Ctrl+Enter on PC.
This commit is contained in:
parent
ed8fa59639
commit
fac6868305
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user