Browse Source

Fixes push to talk.

j8
damencho 9 years ago
parent
commit
dbed8c2976
2 changed files with 9 additions and 1 deletions
  1. 7
    0
      conference.js
  2. 2
    1
      modules/keyboardshortcut/keyboardshortcut.js

+ 7
- 0
conference.js View File

278
         //accessing directly eventEmitter????
278
         //accessing directly eventEmitter????
279
         APP.UI.eventEmitter.emit(UIEvents.AUDIO_MUTED, mute);
279
         APP.UI.eventEmitter.emit(UIEvents.AUDIO_MUTED, mute);
280
     },
280
     },
281
+    /**
282
+     * Returns whether local audio is muted or not.
283
+     * @returns {boolean}
284
+     */
285
+    isLocalAudioMuted() {
286
+        return this.audioMuted;
287
+    },
281
     /**
288
     /**
282
      * Simulates toolbar button click for audio mute. Used by shortcuts and API.
289
      * Simulates toolbar button click for audio mute. Used by shortcuts and API.
283
      */
290
      */

+ 2
- 1
modules/keyboardshortcut/keyboardshortcut.js View File

75
                 $(":focus").is("input[type=password]") ||
75
                 $(":focus").is("input[type=password]") ||
76
                 $(":focus").is("textarea"))) {
76
                 $(":focus").is("textarea"))) {
77
                 if(e.which === "T".charCodeAt(0)) {
77
                 if(e.which === "T".charCodeAt(0)) {
78
-                    APP.conference.muteAudio(true);
78
+                    if(APP.conference.isLocalAudioMuted())
79
+                        APP.conference.muteAudio(false);
79
                 }
80
                 }
80
             }
81
             }
81
         };
82
         };

Loading…
Cancel
Save