Bläddra i källkod

Fixes push to talk when chat is opened.

j8
fo 11 år sedan
förälder
incheckning
ac5d57d02d
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      keyboard_shortcut.js

+ 1
- 1
keyboard_shortcut.js Visa fil

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

Laddar…
Avbryt
Spara