Skip to content

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

fix(filmstrip): Disable keyboard shortcut for hiding videos

Leonard Kim92eeba53922f
diff --git a/modules/UI/videolayout/Filmstrip.js b/modules/UI/videolayout/Filmstrip.js
index b4becc795b..1d32698e15 100644
--- a/modules/UI/videolayout/Filmstrip.js
+++ b/modules/UI/videolayout/Filmstrip.js
@@ -15,18 +15,19 @@ const Filmstrip = {
this.filmstripContainerClassName = 'filmstrip';
this.filmstrip = $('#remoteVideos');
this.eventEmitter = eventEmitter;
- this._initFilmstripToolbar();
- this.registerListeners();
+
+ // Show the toggle button and add event listeners only when out of
+ // filmstrip only mode.
+ if (!interfaceConfig.filmStripOnly) {
+ this._initFilmstripToolbar();
+ this.registerListeners();
+ }
},
/**
* Initializes the filmstrip toolbar.
*/
_initFilmstripToolbar() {
- // Do not show the toggle button in filmstrip only mode.
- if (interfaceConfig.filmStripOnly)
- return;
-
let toolbarContainerHTML = this._generateToolbarHTML();
let className = this.filmstripContainerClassName;
let container = document.querySelector(`.${className}`);