The swiss army knife of lossless video/audio editing
add play pause action too
Mikael Finstad260531a6c497
diff --git a/src/renderer/src/BottomBar.tsx b/src/renderer/src/BottomBar.tsxindex be0d1cac..59dcd423 100644--- a/src/renderer/src/BottomBar.tsx+++ b/src/renderer/src/BottomBar.tsx@@ -501,7 +501,7 @@ function BottomBar({/>)}- <div role="button" onClick={() => togglePlay()} style={{ ...playStyle, margin: '.1em .1em 0 .2em', background: primaryColor }}>+ <div title={actionTitle(t('Play/pause'), 'togglePlayResetSpeed')} role="button" onClick={() => togglePlay()} style={{ ...playStyle, margin: '.1em .1em 0 .2em', background: primaryColor }}><PlayPause style={{ fontSize: '.9em' }} /></div>diff --git a/src/renderer/src/hooks/useActionTitle.ts b/src/renderer/src/hooks/useActionTitle.tsindex e00a2594..da17deec 100644--- a/src/renderer/src/hooks/useActionTitle.ts+++ b/src/renderer/src/hooks/useActionTitle.ts@@ -11,7 +11,7 @@ export default function useActionTitle() {const { keyBindings } = useUserSettings();const keyBindingByAction = useMemo(- () => Object.fromEntries(keyBindings.map((binding) => [binding.action, binding])) as Partial<Record<KeyboardAction, { keys: string }>>,+ () => Object.fromEntries(keyBindings.map((binding) => [binding.action, binding])),[keyBindings],);diff --git a/src/renderer/src/util.ts b/src/renderer/src/util.tsindex 1bf847bc..e107ff54 100644--- a/src/renderer/src/util.ts+++ b/src/renderer/src/util.ts@@ -518,8 +518,12 @@ const keyCodeToDisplayName: Record<string, string> = {};export function getKeyDisplayName(code: string, keyboardLayoutMap: Map<string, string> | undefined): string | undefined {- if (code === 'MetaLeft' || code === 'MetaRight') return getMetaKeyName();- if (keyboardLayoutMap == null) return undefined;+ if (code === 'MetaLeft' || code === 'MetaRight') {+ return getMetaKeyName();+ }+ if (keyboardLayoutMap == null) {+ return undefined;+ }return keyboardLayoutMap.get(code) ?? keyCodeToDisplayName[code] ?? code;}