Fixes push to talk when chat is opened.

This commit is contained in:
fo 2014-10-01 11:44:07 +03:00
parent 74c0c35f31
commit ac5d57d02d
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ var KeyboardShortcut = (function(my) {
};
window.onkeydown = function(e) {
if($("#chatspace").css("display") === "none") {
if(!($(":focus").is("input[type=text]") || $(":focus").is("textarea"))) {
if(e.which === "T".charCodeAt(0)) {
if(isAudioMuted()) {
toggleAudio();