Skip to content

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

feat(external_api) allow shortcuts to be disabled

Tudor-Ovidiu Avram55ebb60f85f6
diff --git a/conference.js b/conference.js
index f23dd08cb7..cf0918bda4 100644
--- a/conference.js
+++ b/conference.js
@@ -2382,7 +2382,9 @@ export default {
_onConferenceJoined() {
APP.UI.initConference();
- APP.keyboardshortcut.init();
+ if (!config.disableShortcuts) {
+ APP.keyboardshortcut.init();
+ }
APP.store.dispatch(conferenceJoined(room));
},
diff --git a/config.js b/config.js
index eff1e917d1..62f4ca5405 100644
--- a/config.js
+++ b/config.js
@@ -336,6 +336,9 @@ var config = {
// will be joined when no room is specified.
enableWelcomePage: true,
+ // Disable app shortcuts that are registered upon joining a conference
+ // disableShortcuts: false,
+
// Disable initial browser getUserMedia requests.
// This is useful for scenarios where users might want to start a conference for screensharing only
// disableInitialGUM: false,
diff --git a/react/features/base/config/configWhitelist.js b/react/features/base/config/configWhitelist.js
index 416de3ca4c..8196023beb 100644
--- a/react/features/base/config/configWhitelist.js
+++ b/react/features/base/config/configWhitelist.js
@@ -90,6 +90,7 @@ export default [
'disableRemoteControl',
'disableRemoteMute',
'disableRtx',
+ 'disableShortcuts',
'disableSimulcast',
'disableThirdPartyRequests',
'disableTileView',