mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 13:43:08 +02:00
Improve keyboard shortcuts
This commit is contained in:
parent
16c36163b4
commit
f4045fb5b3
2 changed files with 6 additions and 2 deletions
|
@ -115,7 +115,7 @@ export default Vue.extend({
|
||||||
return {
|
return {
|
||||||
'r|left': this.reply,
|
'r|left': this.reply,
|
||||||
'a|plus': () => this.react(true),
|
'a|plus': () => this.react(true),
|
||||||
'q|n|right': this.renote,
|
'q|right': this.renote,
|
||||||
'up|shift+tab': this.focusBefore,
|
'up|shift+tab': this.focusBefore,
|
||||||
'down|tab': this.focusAfter,
|
'down|tab': this.focusAfter,
|
||||||
'1': () => this.reactDirectly('like'),
|
'1': () => this.reactDirectly('like'),
|
||||||
|
|
|
@ -15,7 +15,8 @@ export default Vue.extend({
|
||||||
keymap(): any {
|
keymap(): any {
|
||||||
return {
|
return {
|
||||||
'esc': this.close,
|
'esc': this.close,
|
||||||
'ctrl+enter': this.post
|
'enter': this.post,
|
||||||
|
'q': this.quote,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -24,6 +25,9 @@ export default Vue.extend({
|
||||||
post() {
|
post() {
|
||||||
(this.$refs.form as any).ok();
|
(this.$refs.form as any).ok();
|
||||||
},
|
},
|
||||||
|
quote() {
|
||||||
|
(this.$refs.form as any).onQuote();
|
||||||
|
},
|
||||||
close() {
|
close() {
|
||||||
(this.$refs.window as any).close();
|
(this.$refs.window as any).close();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue