Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(visitors): Ignore push-to-talk shortcut.

Jaya Allamsetty28d32cf74000
diff --git a/react/features/keyboard-shortcuts/actions.web.ts b/react/features/keyboard-shortcuts/actions.web.ts
index c4020043f7..d34a9c78bd 100644
--- a/react/features/keyboard-shortcuts/actions.web.ts
+++ b/react/features/keyboard-shortcuts/actions.web.ts
@@ -6,6 +6,7 @@ import { IStore } from '../app/types';
import { clickOnVideo } from '../filmstrip/actions.web';
import { openSettingsDialog } from '../settings/actions.web';
import { SETTINGS_TABS } from '../settings/constants';
+import { iAmVisitor } from '../visitors/functions';
import { registerShortcut } from './actions.any';
import { areKeyboardShortcutsEnabled, getKeyboardShortcuts } from './functions';
@@ -101,7 +102,7 @@ export const initKeyboardShortcuts = () =>
const state = getState();
const enabled = areKeyboardShortcutsEnabled(state);
- if (!enabled) {
+ if (!enabled || iAmVisitor(state)) {
return;
}