From 59d4523d72ff872432662d345456b710222806f9 Mon Sep 17 00:00:00 2001 From: damencho Date: Wed, 24 May 2017 16:10:42 -0500 Subject: [PATCH] Disables speaker stats in filmStrip only mode. --- modules/keyboardshortcut/keyboardshortcut.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/modules/keyboardshortcut/keyboardshortcut.js b/modules/keyboardshortcut/keyboardshortcut.js index 137759387..cd50e94c8 100644 --- a/modules/keyboardshortcut/keyboardshortcut.js +++ b/modules/keyboardshortcut/keyboardshortcut.js @@ -1,4 +1,4 @@ -/* global APP, $, JitsiMeetJS */ +/* global APP, $, JitsiMeetJS, interfaceConfig */ import { toggleDialog @@ -34,12 +34,14 @@ function initGlobalShortcuts() { }); KeyboardShortcut._addShortcutToHelp("SPACE","keyboardShortcuts.pushToTalk"); - KeyboardShortcut.registerShortcut("T", null, () => { - JitsiMeetJS.analytics.sendEvent("shortcut.speakerStats.clicked"); - APP.store.dispatch(toggleDialog(SpeakerStats, { - conference: APP.conference - })); - }, "keyboardShortcuts.showSpeakerStats"); + if(!interfaceConfig.filmStripOnly) { + KeyboardShortcut.registerShortcut("T", null, () => { + JitsiMeetJS.analytics.sendEvent("shortcut.speakerStats.clicked"); + APP.store.dispatch(toggleDialog(SpeakerStats, { + conference: APP.conference + })); + }, "keyboardShortcuts.showSpeakerStats"); + } /** * FIXME: Currently focus keys are directly implemented below in onkeyup.