mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-14 01:50:45 +01:00
Improve keyboard shortcut
This commit is contained in:
parent
2a4c53c3a4
commit
19c72627fc
1 changed files with 11 additions and 0 deletions
|
@ -62,16 +62,27 @@ export default Vue.extend({
|
|||
computed: {
|
||||
keymap(): any {
|
||||
return {
|
||||
'esc': this.close,
|
||||
'1': () => this.react('like'),
|
||||
'numpad 1': () => this.react('like'),
|
||||
'2': () => this.react('love'),
|
||||
'numpad 2': () => this.react('love'),
|
||||
'3': () => this.react('laugh'),
|
||||
'numpad 3': () => this.react('laugh'),
|
||||
'4': () => this.react('hmm'),
|
||||
'numpad 4': () => this.react('hmm'),
|
||||
'5': () => this.react('surprise'),
|
||||
'numpad 5': () => this.react('surprise'),
|
||||
'6': () => this.react('congrats'),
|
||||
'numpad 6': () => this.react('congrats'),
|
||||
'7': () => this.react('angry'),
|
||||
'numpad 7': () => this.react('angry'),
|
||||
'8': () => this.react('confused'),
|
||||
'numpad 8': () => this.react('confused'),
|
||||
'9': () => this.react('rip'),
|
||||
'numpad 9': () => this.react('rip'),
|
||||
'0': () => this.react('pudding'),
|
||||
'numpad 0': () => this.react('pudding'),
|
||||
};
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue