mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 01:13:48 +01:00
Improve keyboard shortcuts
This commit is contained in:
parent
9bf397b48d
commit
c0ce89b57b
@ -115,7 +115,7 @@ export default Vue.extend({
|
||||
return {
|
||||
'r|left': this.reply,
|
||||
'a|plus': () => this.react(true),
|
||||
'q|n|right': this.renote,
|
||||
'q|right': this.renote,
|
||||
'up|shift+tab': this.focusBefore,
|
||||
'down|tab': this.focusAfter,
|
||||
'1': () => this.reactDirectly('like'),
|
||||
|
@ -15,7 +15,8 @@ export default Vue.extend({
|
||||
keymap(): any {
|
||||
return {
|
||||
'esc': this.close,
|
||||
'ctrl+enter': this.post
|
||||
'enter': this.post,
|
||||
'q': this.quote,
|
||||
};
|
||||
}
|
||||
},
|
||||
@ -24,6 +25,9 @@ export default Vue.extend({
|
||||
post() {
|
||||
(this.$refs.form as any).ok();
|
||||
},
|
||||
quote() {
|
||||
(this.$refs.form as any).onQuote();
|
||||
},
|
||||
close() {
|
||||
(this.$refs.window as any).close();
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user