From f4045fb5b32b69664427d844a66d37258e19c5b1 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 18 Sep 2018 14:39:18 +0900 Subject: [PATCH] Improve keyboard shortcuts --- src/client/app/desktop/views/components/notes.note.vue | 2 +- .../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(); },