Add new shortcut

This commit is contained in:
syuilo 2018-09-19 02:27:19 +09:00
parent 394e68cfa4
commit 5e35cf19f2

View file

@ -120,6 +120,7 @@ export default Vue.extend({
'up|k|shift+tab': this.focusBefore,
'down|j|tab': this.focusAfter,
'm|o': () => this.menu(true),
's': this.toggleShowContent,
'1': () => this.reactDirectly('like'),
'2': () => this.reactDirectly('love'),
'3': () => this.reactDirectly('laugh'),
@ -287,6 +288,10 @@ export default Vue.extend({
}).$once('closed', this.focus);
},
toggleShowContent() {
this.showContent = !this.showContent;
},
focus() {
this.$el.focus();
},