Add new shortcut
This commit is contained in:
parent
7b9cea06ef
commit
b0d60ef2c2
|
@ -120,6 +120,7 @@ export default Vue.extend({
|
||||||
'up|k|shift+tab': this.focusBefore,
|
'up|k|shift+tab': this.focusBefore,
|
||||||
'down|j|tab': this.focusAfter,
|
'down|j|tab': this.focusAfter,
|
||||||
'm|o': () => this.menu(true),
|
'm|o': () => this.menu(true),
|
||||||
|
's': this.toggleShowContent,
|
||||||
'1': () => this.reactDirectly('like'),
|
'1': () => this.reactDirectly('like'),
|
||||||
'2': () => this.reactDirectly('love'),
|
'2': () => this.reactDirectly('love'),
|
||||||
'3': () => this.reactDirectly('laugh'),
|
'3': () => this.reactDirectly('laugh'),
|
||||||
|
@ -287,6 +288,10 @@ export default Vue.extend({
|
||||||
}).$once('closed', this.focus);
|
}).$once('closed', this.focus);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
toggleShowContent() {
|
||||||
|
this.showContent = !this.showContent;
|
||||||
|
},
|
||||||
|
|
||||||
focus() {
|
focus() {
|
||||||
this.$el.focus();
|
this.$el.focus();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue