From 41bd436d3ef96f89d8a4be77d6686fd3fab1fc3f Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 20 Oct 2018 02:40:37 +0900 Subject: デッキのキーボードショートカットを強化 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/app/common/scripts/note-mixin.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/client/app/common/scripts/note-mixin.ts') diff --git a/src/client/app/common/scripts/note-mixin.ts b/src/client/app/common/scripts/note-mixin.ts index 491c77747a..1556d06601 100644 --- a/src/client/app/common/scripts/note-mixin.ts +++ b/src/client/app/common/scripts/note-mixin.ts @@ -29,14 +29,18 @@ export default (opts: Opts = {}) => ({ computed: { keymap(): any { return { - 'r|left': () => this.reply(true), + 'r': () => this.reply(true), 'e|a|plus': () => this.react(true), - 'q|right': () => this.renote(true), + 'q': () => this.renote(true), 'f|b': this.favorite, 'delete|ctrl+d': this.del, - 'ctrl+q|ctrl+right': this.renoteDirectly, + 'ctrl+q': this.renoteDirectly, 'up|k|shift+tab': this.focusBefore, 'down|j|tab': this.focusAfter, + 'shift+up': () => this.$emit('parentFocus', 'up'), + 'shift+down': () => this.$emit('parentFocus', 'down'), + 'shift+left': () => this.$emit('parentFocus', 'left'), + 'shift+right': () => this.$emit('parentFocus', 'right'), 'esc': this.blur, 'm|o': () => this.menu(true), 's': this.toggleShowContent, -- cgit v1.2.3-freya