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

pull/523/head
Mikael Finstad 6 years ago
parent b69144acaa
commit 0cbbd2f1d3

@ -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(() => {

@ -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>

Loading…
Cancel
Save