mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 16:53:10 +02:00
Merge pull request #1678 from 2vg/patch-2
fix: validate post's text with Ctrl+Enter on PC.
This commit is contained in:
commit
a0ec6b8ea7
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ export default Vue.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
onKeydown(e) {
|
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) {
|
onPaste(e) {
|
||||||
|
|
Loading…
Reference in a new issue