Selaa lähdekoodia

feat(external_api) allow shortcuts to be disabled

master
Tudor-Ovidiu Avram 4 vuotta sitten
vanhempi
commit
55ebb60f85
3 muutettua tiedostoa jossa 7 lisäystä ja 1 poistoa
  1. 3
    1
      conference.js
  2. 3
    0
      config.js
  3. 1
    0
      react/features/base/config/configWhitelist.js

+ 3
- 1
conference.js Näytä tiedosto

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

+ 3
- 0
config.js Näytä tiedosto

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

+ 1
- 0
react/features/base/config/configWhitelist.js Näytä tiedosto

@@ -90,6 +90,7 @@ export default [
90 90
     'disableRemoteControl',
91 91
     'disableRemoteMute',
92 92
     'disableRtx',
93
+    'disableShortcuts',
93 94
     'disableSimulcast',
94 95
     'disableThirdPartyRequests',
95 96
     'disableTileView',

Loading…
Peruuta
Tallenna