summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-09-18 14:53:17 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-09-18 14:53:17 +0900
commit87b6ef0ec52b684b60a4d99d1fe9b4a82db6bc52 (patch)
treebd50111896e909ff1ab9421a5848237d17fd7f15
parentImprove usability (diff)
downloadmisskey-87b6ef0ec52b684b60a4d99d1fe9b4a82db6bc52.tar.gz
misskey-87b6ef0ec52b684b60a4d99d1fe9b4a82db6bc52.tar.bz2
misskey-87b6ef0ec52b684b60a4d99d1fe9b4a82db6bc52.zip
Improve keyboard shortcut
-rw-r--r--src/client/app/desktop/views/components/notes.note.vue7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client/app/desktop/views/components/notes.note.vue b/src/client/app/desktop/views/components/notes.note.vue
index bffa6affc9..a2ba85bdf9 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, {