Open source video conferencing app powered by LiveKit. Built with Django and React.
🐛(frontend) prevent shortcut handling when key is undefined
lebaudantoined44b45b6aac4
diff --git a/src/frontend/src/features/shortcuts/useKeyboardShortcuts.ts b/src/frontend/src/features/shortcuts/useKeyboardShortcuts.tsindex bfe0574a..09b471a6 100644--- a/src/frontend/src/features/shortcuts/useKeyboardShortcuts.ts+++ b/src/frontend/src/features/shortcuts/useKeyboardShortcuts.ts@@ -12,6 +12,7 @@ export const useKeyboardShortcuts = () => {// Issues might occur. First draft.const onKeyDown = (e: KeyboardEvent) => {const { key, metaKey, ctrlKey } = e+ if (!key) returnconst shortcutKey = formatShortcutKey({key,ctrlKey: ctrlKey || (isMacintosh() && metaKey),