From 82e08fbdd1799c6afb629d336c72703df0da2824 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Sun, 6 Mar 2022 21:50:48 +0800 Subject: [PATCH] rename events selectPrevSegment->jumpPrevSegment selectNextSegment->jumpNextSegment --- public/configStore.js | 4 ++-- src/App.jsx | 4 ++-- src/components/KeyboardShortcuts.jsx | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/public/configStore.js b/public/configStore.js index 1cc83b9b..24fbf81b 100644 --- a/public/configStore.js +++ b/public/configStore.js @@ -42,12 +42,12 @@ const defaultKeyBindings = [ { keys: 'ctrl+home', action: 'jumpTimelineStart' }, { keys: 'ctrl+end', action: 'jumpTimelineEnd' }, - { keys: 'up', action: 'selectPrevSegment' }, + { keys: 'up', action: 'jumpPrevSegment' }, { keys: 'ctrl+up', action: 'timelineZoomIn' }, { keys: 'command+up', action: 'timelineZoomIn' }, { keys: 'shift+up', action: 'batchPreviousFile' }, - { keys: 'down', action: 'selectNextSegment' }, + { keys: 'down', action: 'jumpNextSegment' }, { keys: 'ctrl+down', action: 'timelineZoomOut' }, { keys: 'command+down', action: 'timelineZoomOut' }, { keys: 'shift+down', action: 'batchNextFile' }, diff --git a/src/App.jsx b/src/App.jsx index 04065b0c..6853ff7e 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1829,8 +1829,8 @@ const App = memo(() => { seekForwardsKeyframe: () => seekClosestKeyframe(1), seekPreviousFrame: () => shortStep(-1), seekNextFrame: () => shortStep(1), - selectPrevSegment: () => jumpSeg(-1), - selectNextSegment: () => jumpSeg(1), + jumpPrevSegment: () => jumpSeg(-1), + jumpNextSegment: () => jumpSeg(1), jumpCutStart, jumpCutEnd, jumpTimelineStart, diff --git a/src/components/KeyboardShortcuts.jsx b/src/components/KeyboardShortcuts.jsx index 70e0ce3a..2f08d67d 100644 --- a/src/components/KeyboardShortcuts.jsx +++ b/src/components/KeyboardShortcuts.jsx @@ -272,12 +272,12 @@ const KeyboardShortcuts = memo(({ name: t('Split segment at cursor'), category: segmentsAndCutpointsCategory, }, - selectPrevSegment: { - name: t('Select previous segment'), + jumpPrevSegment: { + name: t('Jump to previous segment'), category: segmentsAndCutpointsCategory, }, - selectNextSegment: { - name: t('Select next segment'), + jumpNextSegment: { + name: t('Jump to next segment'), category: segmentsAndCutpointsCategory, }, reorderSegsByStartTime: {