From 5e35cf19f24f50fdfee9bb68039b4d628dd7c63a Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 19 Sep 2018 02:27:19 +0900 Subject: [PATCH] Add new shortcut --- src/client/app/desktop/views/components/notes.note.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/client/app/desktop/views/components/notes.note.vue b/src/client/app/desktop/views/components/notes.note.vue index d1178a933..1a670a9e7 100644 --- a/src/client/app/desktop/views/components/notes.note.vue +++ b/src/client/app/desktop/views/components/notes.note.vue @@ -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(); },