fix(filmstrip): Disable keyboard shortcut for hiding videos

This commit is contained in:
Leonard Kim 2017-05-10 13:54:38 -07:00
parent 2f3706bd37
commit 92eeba5392
1 changed files with 7 additions and 6 deletions

View File

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