Browse Source

feat(external_api) allow shortcuts to be disabled

master
Tudor-Ovidiu Avram 4 years ago
parent
commit
55ebb60f85
3 changed files with 7 additions and 1 deletions
  1. 3
    1
      conference.js
  2. 3
    0
      config.js
  3. 1
    0
      react/features/base/config/configWhitelist.js

+ 3
- 1
conference.js View File

2382
     _onConferenceJoined() {
2382
     _onConferenceJoined() {
2383
         APP.UI.initConference();
2383
         APP.UI.initConference();
2384
 
2384
 
2385
-        APP.keyboardshortcut.init();
2385
+        if (!config.disableShortcuts) {
2386
+            APP.keyboardshortcut.init();
2387
+        }
2386
 
2388
 
2387
         APP.store.dispatch(conferenceJoined(room));
2389
         APP.store.dispatch(conferenceJoined(room));
2388
     },
2390
     },

+ 3
- 0
config.js View File

336
     // will be joined when no room is specified.
336
     // will be joined when no room is specified.
337
     enableWelcomePage: true,
337
     enableWelcomePage: true,
338
 
338
 
339
+    // Disable app shortcuts that are registered upon joining a conference
340
+    // disableShortcuts: false,
341
+
339
     // Disable initial browser getUserMedia requests.
342
     // Disable initial browser getUserMedia requests.
340
     // This is useful for scenarios where users might want to start a conference for screensharing only
343
     // This is useful for scenarios where users might want to start a conference for screensharing only
341
     // disableInitialGUM: false,
344
     // disableInitialGUM: false,

+ 1
- 0
react/features/base/config/configWhitelist.js View File

90
     'disableRemoteControl',
90
     'disableRemoteControl',
91
     'disableRemoteMute',
91
     'disableRemoteMute',
92
     'disableRtx',
92
     'disableRtx',
93
+    'disableShortcuts',
93
     'disableSimulcast',
94
     'disableSimulcast',
94
     'disableThirdPartyRequests',
95
     'disableThirdPartyRequests',
95
     'disableTileView',
96
     'disableTileView',

Loading…
Cancel
Save