🎥 Make videos programmatically with React
`@remotion/studio`: Fix crash in MS Edge
Jonny Burger7430afee5467
diff --git a/packages/studio/src/helpers/use-keybinding.ts b/packages/studio/src/helpers/use-keybinding.tsindex ff583774ad..6dda262e22 100644--- a/packages/studio/src/helpers/use-keybinding.ts+++ b/packages/studio/src/helpers/use-keybinding.ts@@ -45,6 +45,13 @@ export const useKeybinding = () => {const commandKey = window.navigator.platform.startsWith('Mac')? e.metaKey: e.ctrlKey;++ // Apparently, e.key can be undefined in Edge:+ // https://github.com/remotion-dev/remotion/issues/5637+ if (!e.key) {+ return;+ }+if (e.key.toLowerCase() === options.key.toLowerCase() &&options.commandCtrlKey === commandKey