Skip to content
Snippets Groups Projects
Unverified Commit 87b6ef0e authored by syuilo's avatar syuilo
Browse files

Improve keyboard shortcut

parent 5184a07c
No related branches found
No related tags found
No related merge requests found
......@@ -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, {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment