From 5411f5209f90a234432824b8ce43d786203b8ba1 Mon Sep 17 00:00:00 2001 From: AkiraFukushima Date: Fri, 12 Aug 2022 21:46:45 +0900 Subject: [PATCH] refs #3300 Enable shortcut to move focus on statuses in Local --- .../TimelineSpace/Contents/Favourites.vue | 2 +- .../TimelineSpace/Contents/Local.vue | 27 +++++++++++++++---- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/src/renderer/components/TimelineSpace/Contents/Favourites.vue b/src/renderer/components/TimelineSpace/Contents/Favourites.vue index d89c417e..767d92d8 100644 --- a/src/renderer/components/TimelineSpace/Contents/Favourites.vue +++ b/src/renderer/components/TimelineSpace/Contents/Favourites.vue @@ -97,7 +97,7 @@ export default defineComponent({ whenever(and(j, shortcutEnabled), () => { if (focusedId.value === null) { - focusedId.value = favourites.value[0].id + focusedId.value = favourites.value[0].uri } else { focusNext() } diff --git a/src/renderer/components/TimelineSpace/Contents/Local.vue b/src/renderer/components/TimelineSpace/Contents/Local.vue index b4d67c2b..d5129f35 100644 --- a/src/renderer/components/TimelineSpace/Contents/Local.vue +++ b/src/renderer/components/TimelineSpace/Contents/Local.vue @@ -11,8 +11,6 @@ :filters="[]" v-on:update="updateToot" v-on:delete="deleteToot" - @focusNext="focusNext" - @focusPrev="focusPrev" @focusRight="focusSidebar" @selectToot="focusToot(item)" @sizeChanged="sizeChanged" @@ -31,6 +29,7 @@