Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
fix: Add configurable shortcut for speed adjustment in TimelineEditor
FabLrc0e082fff9c92
diff --git a/src/components/video-editor/timeline/TimelineEditor.tsx b/src/components/video-editor/timeline/TimelineEditor.tsxindex 17a376728..2b036855a 100644--- a/src/components/video-editor/timeline/TimelineEditor.tsx+++ b/src/components/video-editor/timeline/TimelineEditor.tsx@@ -967,7 +967,7 @@ export default function TimelineEditor({if (matchesShortcut(e, keyShortcuts.addAnnotation, isMac)) {handleAddAnnotation();}- if (e.key === 's' || e.key === 'S') {+ if (matchesShortcut(e, keyShortcuts.addSpeed, isMac)) {handleAddSpeed();}diff --git a/src/lib/shortcuts.ts b/src/lib/shortcuts.tsindex 75ccce97d..847c7539e 100644--- a/src/lib/shortcuts.ts+++ b/src/lib/shortcuts.ts@@ -1,6 +1,7 @@export const SHORTCUT_ACTIONS = ['addZoom','addTrim',+ 'addSpeed','addAnnotation','addKeyframe','deleteSelected',@@ -67,6 +68,7 @@ export function findConflict(export const DEFAULT_SHORTCUTS: ShortcutsConfig = {addZoom: { key: 'z' },addTrim: { key: 't' },+ addSpeed: { key: 's' },addAnnotation: { key: 'a' },addKeyframe: { key: 'f' },deleteSelected: { key: 'd', ctrl: true },@@ -76,6 +78,7 @@ export const DEFAULT_SHORTCUTS: ShortcutsConfig = {export const SHORTCUT_LABELS: Record<ShortcutAction, string> = {addZoom: 'Add Zoom',addTrim: 'Add Trim',+ addSpeed: 'Add Speed',addAnnotation: 'Add Annotation',addKeyframe: 'Add Keyframe',deleteSelected: 'Delete Selected',