mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-25 08:26:43 -06:00
Merge branch 'master' of https://github.com/syuilo/misskey
This commit is contained in:
commit
539f307500
4 changed files with 15 additions and 3 deletions
12
.vscode/extensions.json
vendored
Normal file
12
.vscode/extensions.json
vendored
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"ducksoupdev.vue2",
|
||||||
|
"editorconfig.editorconfig",
|
||||||
|
"eg2.tslint",
|
||||||
|
"eg2.vscode-npm-script",
|
||||||
|
"hollowtree.vue-snippets",
|
||||||
|
"ms-vscode.typescript-javascript-grammar",
|
||||||
|
"octref.vetur",
|
||||||
|
"sysoev.language-stylus"
|
||||||
|
]
|
||||||
|
}
|
|
@ -119,7 +119,7 @@ export default Vue.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
onKeypress(e) {
|
onKeypress(e) {
|
||||||
if ((e.which == 10 || e.which == 13) && e.ctrlKey) {
|
if ((e.which == 10 || e.which == 13) && e.ctrlKey && this.canSend) {
|
||||||
this.send();
|
this.send();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -244,7 +244,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) && this.canPost) this.post();
|
||||||
},
|
},
|
||||||
|
|
||||||
onPaste(e) {
|
onPaste(e) {
|
||||||
|
|
|
@ -45,7 +45,7 @@ export default define({
|
||||||
this.save();
|
this.save();
|
||||||
},
|
},
|
||||||
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) && !this.posting && this.text) this.post();
|
||||||
},
|
},
|
||||||
post() {
|
post() {
|
||||||
this.posting = true;
|
this.posting = true;
|
||||||
|
|
Loading…
Reference in a new issue