Bläddra i källkod

Disables speaker stats in filmStrip only mode.

j8
damencho 8 år sedan
förälder
incheckning
59d4523d72
1 ändrade filer med 9 tillägg och 7 borttagningar
  1. 9
    7
      modules/keyboardshortcut/keyboardshortcut.js

+ 9
- 7
modules/keyboardshortcut/keyboardshortcut.js Visa fil

@@ -1,4 +1,4 @@
1
-/* global APP, $, JitsiMeetJS */
1
+/* global APP, $, JitsiMeetJS, interfaceConfig */
2 2
 
3 3
 import {
4 4
     toggleDialog
@@ -34,12 +34,14 @@ function initGlobalShortcuts() {
34 34
     });
35 35
     KeyboardShortcut._addShortcutToHelp("SPACE","keyboardShortcuts.pushToTalk");
36 36
 
37
-    KeyboardShortcut.registerShortcut("T", null, () => {
38
-        JitsiMeetJS.analytics.sendEvent("shortcut.speakerStats.clicked");
39
-        APP.store.dispatch(toggleDialog(SpeakerStats, {
40
-            conference: APP.conference
41
-        }));
42
-    }, "keyboardShortcuts.showSpeakerStats");
37
+    if(!interfaceConfig.filmStripOnly) {
38
+        KeyboardShortcut.registerShortcut("T", null, () => {
39
+            JitsiMeetJS.analytics.sendEvent("shortcut.speakerStats.clicked");
40
+            APP.store.dispatch(toggleDialog(SpeakerStats, {
41
+                conference: APP.conference
42
+            }));
43
+        }, "keyboardShortcuts.showSpeakerStats");
44
+    }
43 45
 
44 46
     /**
45 47
      * FIXME: Currently focus keys are directly implemented below in onkeyup.

Laddar…
Avbryt
Spara