From 87b6ef0ec52b684b60a4d99d1fe9b4a82db6bc52 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 18 Sep 2018 14:53:17 +0900 Subject: [PATCH] Improve keyboard shortcut --- src/client/app/desktop/views/components/notes.note.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/client/app/desktop/views/components/notes.note.vue b/src/client/app/desktop/views/components/notes.note.vue index bffa6affc..a2ba85bdf 100644 --- a/src/client/app/desktop/views/components/notes.note.vue +++ b/src/client/app/desktop/views/components/notes.note.vue @@ -115,6 +115,7 @@ export default Vue.extend({ return { 'r|left': () => this.reply(true), 'a|plus': () => this.react(true), + 'ctrl+q|ctrl+right': this.renoteDirectly, 'q|right': () => this.renote(true), 'up|k|shift+tab': this.focusBefore, 'down|j|tab': this.focusAfter, @@ -254,6 +255,12 @@ export default Vue.extend({ }).$once('closed', this.focus); }, + renoteDirectly() { + (this as any).api('notes/create', { + renoteId: this.p.id + }); + }, + react(viaKeyboard = false) { this.blur(); (this as any).os.new(MkReactionPicker, {