Skip to content

The swiss army knife of lossless video/audio editing

Add hotkey for jump cut start/end #377 #254

Mikael Finstad0cbbd2f1d3e2
diff --git a/src/App.jsx b/src/App.jsx
index 5b6cd89f..260b4d1f 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -1315,7 +1315,9 @@ const App = memo(() => {
hotkeys('ctrl+right, command+right', seekForwardsPercent);
hotkeys('alt+left', seekBackwardsKeyframe);
hotkeys('alt+right', seekForwardsKeyframe);
- hotkeys('up', jumpPrevSegment);
+ hotkeys('shift+left', jumpCutStart);
+ hotkeys('shift+right', jumpCutEnd);
+ hotkeys('up', jumpPrevSegment);
hotkeys('down', jumpNextSegment);
hotkeys('ctrl+up, command+up', zoomIn);
hotkeys('ctrl+down, command+down', zoomOut);
@@ -1342,6 +1344,8 @@ const App = memo(() => {
hotkeys.unbind('ctrl+right, command+right', seekForwardsPercent);
hotkeys.unbind('alt+left', seekBackwardsKeyframe);
hotkeys.unbind('alt+right', seekForwardsKeyframe);
+ hotkeys.unbind('shift+left', jumpCutStart);
+ hotkeys.unbind('shift+right', jumpCutEnd);
hotkeys.unbind('up', jumpPrevSegment);
hotkeys.unbind('down', jumpNextSegment);
hotkeys.unbind('ctrl+up, command+up', zoomIn);
@@ -1361,7 +1365,7 @@ const App = memo(() => {
addCutSegment, capture, changePlaybackRate, togglePlay, removeCutSegment,
setCutEnd, setCutStart, seekRel, seekRelPercent, shortStep, deleteSource, jumpSeg,
seekClosestKeyframe, zoomRel, toggleComfortZoom, splitCurrentSegment, exportConfirmVisible,
- increaseRotation,
+ increaseRotation, jumpCutStart, jumpCutEnd,
]);
useEffect(() => {
diff --git a/src/HelpSheet.jsx b/src/HelpSheet.jsx
index 22451311..a30edfc7 100644
--- a/src/HelpSheet.jsx
+++ b/src/HelpSheet.jsx
@@ -56,8 +56,8 @@ const HelpSheet = memo(({ visible, onTogglePress, ffmpegCommandLog, currentCutSe
<div><kbd>→</kbd> {t('Seek forward 1 sec')}</div>
<div><kbd>CTRL</kbd> / <kbd>CMD</kbd> + <kbd>←</kbd> {t('Seek backward 1% of timeline at current zoom')}</div>
<div><kbd>CTRL</kbd> / <kbd>CMD</kbd> + <kbd>→</kbd> {t('Seek forward 1% of timeline at current zoom')}</div>
- <div style={{ lineHeight: 1.7 }}><SetCutpointButton currentCutSeg={currentCutSeg} side="start" Icon={FaStepBackward} style={{ verticalAlign: 'middle' }} /> {t('Jump to cut end')}</div>
- <div style={{ lineHeight: 1.7 }}><SetCutpointButton currentCutSeg={currentCutSeg} side="end" Icon={FaStepForward} style={{ verticalAlign: 'middle' }} /> {t('Jump to cut end')}</div>
+ <div style={{ lineHeight: 1.7 }}><SetCutpointButton currentCutSeg={currentCutSeg} side="start" Icon={FaStepBackward} style={{ verticalAlign: 'middle' }} />, <kbd>SHIFT</kbd> + <kbd>←</kbd> {t('Jump to cut end')}</div>
+ <div style={{ lineHeight: 1.7 }}><SetCutpointButton currentCutSeg={currentCutSeg} side="end" Icon={FaStepForward} style={{ verticalAlign: 'middle' }} />, <kbd>SHIFT</kbd> + <kbd>→</kbd> {t('Jump to cut end')}</div>
<h2>{t('Segments and cut points')}</h2>