|
|
@@ -27,12 +27,10 @@ function initGlobalShortcuts() {
|
|
27
|
27
|
APP.conference.muteAudio(true);
|
|
28
|
28
|
}, "keyboardShortcuts.pushToTalk");
|
|
29
|
29
|
|
|
30
|
|
- KeyboardShortcut.registerShortcut("F", 'filmstripPopover', function() {
|
|
31
|
|
- JitsiMeetJS.analytics.sendEvent("shortcut.film.toggled");
|
|
32
|
|
- APP.UI.toggleFilmStrip();
|
|
33
|
|
- }, "keyboardShortcuts.toggleFilmstrip");
|
|
34
|
|
-
|
|
35
|
|
- // Focus keys are directly implemented below.
|
|
|
30
|
+ /**
|
|
|
31
|
+ * FIXME: Currently focus keys are directly implemented below in onkeyup.
|
|
|
32
|
+ * They should be moved to the SmallVideo instead.
|
|
|
33
|
+ */
|
|
36
|
34
|
KeyboardShortcut._addShortcutToHelp("0", "keyboardShortcuts.focusLocal");
|
|
37
|
35
|
KeyboardShortcut._addShortcutToHelp("1-9", "keyboardShortcuts.focusRemote");
|
|
38
|
36
|
}
|
|
|
@@ -123,6 +121,8 @@ var KeyboardShortcut = {
|
|
123
|
121
|
*/
|
|
124
|
122
|
unregisterShortcut: function(shortcutChar) {
|
|
125
|
123
|
_shortcuts.remove(shortcutChar);
|
|
|
124
|
+
|
|
|
125
|
+ this._removeShortcutFromHelp(shortcutChar);
|
|
126
|
126
|
},
|
|
127
|
127
|
|
|
128
|
128
|
/**
|
|
|
@@ -177,6 +177,7 @@ var KeyboardShortcut = {
|
|
177
|
177
|
_addShortcutToHelp: function (shortcutChar, shortcutDescriptionKey) {
|
|
178
|
178
|
|
|
179
|
179
|
var listElement = document.createElement("li");
|
|
|
180
|
+ listElement.id = shortcutChar;
|
|
180
|
181
|
|
|
181
|
182
|
var spanElement = document.createElement("span");
|
|
182
|
183
|
spanElement.className = "item-action";
|
|
|
@@ -200,6 +201,21 @@ var KeyboardShortcut = {
|
|
200
|
201
|
|
|
201
|
202
|
if (parentListElement)
|
|
202
|
203
|
parentListElement.appendChild(listElement);
|
|
|
204
|
+ },
|
|
|
205
|
+
|
|
|
206
|
+ /**
|
|
|
207
|
+ * Removes the list element corresponding to the given shortcut from the
|
|
|
208
|
+ * help dialog
|
|
|
209
|
+ * @private
|
|
|
210
|
+ */
|
|
|
211
|
+ _removeShortcutFromHelp: function (shortcutChar) {
|
|
|
212
|
+ var parentListElement
|
|
|
213
|
+ = document.getElementById("keyboard-shortcuts-list");
|
|
|
214
|
+
|
|
|
215
|
+ var shortcutElement = document.getElementById(shortcutChar);
|
|
|
216
|
+
|
|
|
217
|
+ if (shortcutElement)
|
|
|
218
|
+ parentListElement.removeChild(shortcutElement);
|
|
203
|
219
|
}
|
|
204
|
220
|
};
|
|
205
|
221
|
|