mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-24 19:53:09 +02:00
Improve keyboard shortcut
This commit is contained in:
parent
5184a07cf2
commit
87b6ef0ec5
1 changed files with 7 additions and 0 deletions
|
@ -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, {
|
||||
|
|
Loading…
Reference in a new issue