The swiss army knife of lossless video/audio editing
add keyboard shortcuts
Mikael Finstad814c813185e9
diff --git a/src/App.jsx b/src/App.jsxindex dc9d2988..14f9a72a 100644--- a/src/App.jsx+++ b/src/App.jsx@@ -1813,6 +1813,7 @@ const App = memo(() => {createFixedDurationSegments,createNumSegments,createRandomSegments,+ alignSegmentTimesToKeyframes,shuffleSegments,clearSegments,toggleSegmentsList,@@ -1831,6 +1832,7 @@ const App = memo(() => {toggleCurrentSegmentSelected,removeSelectedSegments,fixInvalidDuration: tryFixInvalidDuration,+ shiftAllSegmentTimes,increaseVolume: () => setPlaybackVolume((val) => Math.min(1, val + 0.07)),decreaseVolume: () => setPlaybackVolume((val) => Math.max(0, val - 0.07)),};@@ -1874,7 +1876,7 @@ const App = memo(() => {if (match) return bubble;return true; // bubble the event- }, [addSegment, askSetStartTimeOffset, batchFileJump, batchOpenSelectedFile, captureSnapshot, captureSnapshotAsCoverArt, changePlaybackRate, cleanupFilesDialog, clearSegments, closeBatch, closeExportConfirm, combineOverlappingSegments, concatCurrentBatch, concatDialogVisible, convertFormatBatch, createFixedDurationSegments, createNumSegments, createRandomSegments, currentSegIndexSafe, cutSegmentsHistory, deselectAllSegments, exportConfirmVisible, extractAllStreams, extractCurrentSegmentFramesAsImages, fillSegmentsGaps, goToTimecode, increaseRotation, invertAllSegments, jumpCutEnd, jumpCutStart, jumpSeg, jumpTimelineEnd, jumpTimelineStart, keyboardNormalSeekSpeed, keyboardSeekAccFactor, keyboardShortcutsVisible, onExportConfirm, onExportPress, onLabelSegment, pause, play, removeCutSegment, removeSelectedSegments, reorderSegsByStartTime, seekClosestKeyframe, seekRel, seekRelPercent, selectAllSegments, selectOnlyCurrentSegment, setCutEnd, setCutStart, setPlaybackVolume, shortStep, shuffleSegments, splitCurrentSegment, timelineToggleComfortZoom, toggleCaptureFormat, toggleCurrentSegmentSelected, toggleKeyboardShortcuts, toggleKeyframeCut, toggleLastCommands, togglePlay, toggleSegmentsList, toggleStreamsSelector, toggleStripAudio, tryFixInvalidDuration, userHtml5ifyCurrentFile, zoomRel]);+ }, [addSegment, alignSegmentTimesToKeyframes, askSetStartTimeOffset, batchFileJump, batchOpenSelectedFile, captureSnapshot, captureSnapshotAsCoverArt, changePlaybackRate, cleanupFilesDialog, clearSegments, closeBatch, closeExportConfirm, combineOverlappingSegments, concatCurrentBatch, concatDialogVisible, convertFormatBatch, createFixedDurationSegments, createNumSegments, createRandomSegments, currentSegIndexSafe, cutSegmentsHistory, deselectAllSegments, exportConfirmVisible, extractAllStreams, extractCurrentSegmentFramesAsImages, fillSegmentsGaps, goToTimecode, increaseRotation, invertAllSegments, jumpCutEnd, jumpCutStart, jumpSeg, jumpTimelineEnd, jumpTimelineStart, keyboardNormalSeekSpeed, keyboardSeekAccFactor, keyboardShortcutsVisible, onExportConfirm, onExportPress, onLabelSegment, pause, play, removeCutSegment, removeSelectedSegments, reorderSegsByStartTime, seekClosestKeyframe, seekRel, seekRelPercent, selectAllSegments, selectOnlyCurrentSegment, setCutEnd, setCutStart, setPlaybackVolume, shiftAllSegmentTimes, shortStep, shuffleSegments, splitCurrentSegment, timelineToggleComfortZoom, toggleCaptureFormat, toggleCurrentSegmentSelected, toggleKeyboardShortcuts, toggleKeyframeCut, toggleLastCommands, togglePlay, toggleSegmentsList, toggleStreamsSelector, toggleStripAudio, tryFixInvalidDuration, userHtml5ifyCurrentFile, zoomRel]);useKeyboard({ keyBindings, onKeyPress });diff --git a/src/components/KeyboardShortcuts.jsx b/src/components/KeyboardShortcuts.jsxindex ebb3a090..7ddb9d23 100644--- a/src/components/KeyboardShortcuts.jsx+++ b/src/components/KeyboardShortcuts.jsx@@ -292,6 +292,14 @@ const KeyboardShortcuts = memo(({name: t('Fill gaps between segments'),category: segmentsAndCutpointsCategory,},+ shiftAllSegmentTimes: {+ name: t('Shift all segments on timeline'),+ category: segmentsAndCutpointsCategory,+ },+ alignSegmentTimesToKeyframes: {+ name: t('Align segment times to keyframes'),+ category: segmentsAndCutpointsCategory,+ },createFixedDurationSegments: {name: t('Create fixed duration segments'),category: segmentsAndCutpointsCategory,