|
|
@@ -17,10 +17,12 @@ function initGlobalShortcuts() {
|
|
17
|
17
|
APP.UI.toggleKeyboardShortcutsPanel();
|
|
18
|
18
|
}, "keyboardShortcuts.toggleShortcuts");
|
|
19
|
19
|
|
|
20
|
|
- KeyboardShortcut.registerShortcut("T", null, function() {
|
|
|
20
|
+ // register SPACE shortcut in two steps to insure visibility of help message
|
|
|
21
|
+ KeyboardShortcut.registerShortcut(" ", null, function() {
|
|
21
|
22
|
JitsiMeetJS.analytics.sendEvent("shortcut.talk.clicked");
|
|
22
|
23
|
APP.conference.muteAudio(true);
|
|
23
|
|
- }, "keyboardShortcuts.pushToTalk");
|
|
|
24
|
+ });
|
|
|
25
|
+ KeyboardShortcut._addShortcutToHelp("SPACE","keyboardShortcuts.pushToTalk");
|
|
24
|
26
|
|
|
25
|
27
|
/**
|
|
26
|
28
|
* FIXME: Currently focus keys are directly implemented below in onkeyup.
|
|
|
@@ -68,7 +70,7 @@ var KeyboardShortcut = {
|
|
68
|
70
|
$(":focus").is("input[type=password]") ||
|
|
69
|
71
|
$(":focus").is("textarea"))) {
|
|
70
|
72
|
var key = self._getKeyboardKey(e).toUpperCase();
|
|
71
|
|
- if(key === "T") {
|
|
|
73
|
+ if(key === " ") {
|
|
72
|
74
|
if(APP.conference.isLocalAudioMuted())
|
|
73
|
75
|
APP.conference.muteAudio(false);
|
|
74
|
76
|
}
|