From 41bd436d3ef96f89d8a4be77d6686fd3fab1fc3f Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 20 Oct 2018 02:40:37 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=87=E3=83=83=E3=82=AD=E3=81=AE=E3=82=AD?= =?UTF-8?q?=E3=83=BC=E3=83=9C=E3=83=BC=E3=83=89=E3=82=B7=E3=83=A7=E3=83=BC?= =?UTF-8?q?=E3=83=88=E3=82=AB=E3=83=83=E3=83=88=E3=82=92=E5=BC=B7=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/app/common/scripts/note-mixin.ts | 10 ++- .../views/pages/deck/deck.column-core.vue | 22 ++++--- .../desktop/views/pages/deck/deck.notes.vue | 12 +++- .../views/pages/deck/deck.tl-column.vue | 9 ++- .../app/desktop/views/pages/deck/deck.tl.vue | 8 ++- .../app/desktop/views/pages/deck/deck.vue | 65 +++++++++++++++++-- src/docs/keyboard-shortcut.ja-JP.md | 19 +++++- 7 files changed, 119 insertions(+), 26 deletions(-) diff --git a/src/client/app/common/scripts/note-mixin.ts b/src/client/app/common/scripts/note-mixin.ts index 491c77747..1556d0660 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, diff --git a/src/client/app/desktop/views/pages/deck/deck.column-core.vue b/src/client/app/desktop/views/pages/deck/deck.column-core.vue index 0f64406a7..dd2483c5c 100644 --- a/src/client/app/desktop/views/pages/deck/deck.column-core.vue +++ b/src/client/app/desktop/views/pages/deck/deck.column-core.vue @@ -1,14 +1,14 @@ diff --git a/src/client/app/desktop/views/pages/deck/deck.notes.vue b/src/client/app/desktop/views/pages/deck/deck.notes.vue index 98cc1e13a..ec1298369 100644 --- a/src/client/app/desktop/views/pages/deck/deck.notes.vue +++ b/src/client/app/desktop/views/pages/deck/deck.notes.vue @@ -17,7 +17,13 @@
@@ -97,7 +100,11 @@ export default Vue.extend({ focus() { this.$refs.tl.focus(); - } + }, + + parentFocus(direction) { + this.$emit('parentFocus', direction); + }, } }); diff --git a/src/client/app/desktop/views/pages/deck/deck.tl.vue b/src/client/app/desktop/views/pages/deck/deck.tl.vue index e9507cdf2..318e661b7 100644 --- a/src/client/app/desktop/views/pages/deck/deck.tl.vue +++ b/src/client/app/desktop/views/pages/deck/deck.tl.vue @@ -1,5 +1,5 @@ diff --git a/src/client/app/desktop/views/pages/deck/deck.vue b/src/client/app/desktop/views/pages/deck/deck.vue index 232ffee23..46b4fde7e 100644 --- a/src/client/app/desktop/views/pages/deck/deck.vue +++ b/src/client/app/desktop/views/pages/deck/deck.vue @@ -4,10 +4,10 @@