diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-09-18 14:39:18 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-09-18 14:39:18 +0900 |
| commit | f4045fb5b32b69664427d844a66d37258e19c5b1 (patch) | |
| tree | 33bbeb0516099c962cb100409d3f74fed4733ec0 /src | |
| parent | Fix bug (diff) | |
| download | misskey-f4045fb5b32b69664427d844a66d37258e19c5b1.tar.gz misskey-f4045fb5b32b69664427d844a66d37258e19c5b1.tar.bz2 misskey-f4045fb5b32b69664427d844a66d37258e19c5b1.zip | |
Improve keyboard shortcuts
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/app/desktop/views/components/notes.note.vue | 2 | ||||
| -rw-r--r-- | src/client/app/desktop/views/components/renote-form-window.vue | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/client/app/desktop/views/components/notes.note.vue b/src/client/app/desktop/views/components/notes.note.vue index e53dbe1215..b96f3ab998 100644 --- a/src/client/app/desktop/views/components/notes.note.vue +++ b/src/client/app/desktop/views/components/notes.note.vue @@ -115,7 +115,7 @@ export default Vue.extend({ return { 'r|left': this.reply, 'a|plus': () => this.react(true), - 'q|n|right': this.renote, + 'q|right': this.renote, 'up|shift+tab': this.focusBefore, 'down|tab': this.focusAfter, '1': () => this.reactDirectly('like'), diff --git a/src/client/app/desktop/views/components/renote-form-window.vue b/src/client/app/desktop/views/components/renote-form-window.vue index 6c9cb59d4a..44ad2da800 100644 --- a/src/client/app/desktop/views/components/renote-form-window.vue +++ b/src/client/app/desktop/views/components/renote-form-window.vue @@ -15,7 +15,8 @@ export default Vue.extend({ keymap(): any { return { 'esc': this.close, - 'ctrl+enter': this.post + 'enter': this.post, + 'q': this.quote, }; } }, @@ -24,6 +25,9 @@ export default Vue.extend({ post() { (this.$refs.form as any).ok(); }, + quote() { + (this.$refs.form as any).onQuote(); + }, close() { (this.$refs.window as any).close(); }, |