repo: janusweb
action: commit
revision: 
path_from: 
revision_from: e4633bf57e68040c26141f05ae718bd76951f638:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit e4633bf57e68040c26141f05ae718bd76951f638
Author: James Baicoianu 
Date:   Thu Sep 29 03:33:37 2016 -0700

    Don't focus chat if urlbar has focus

diff --git a/scripts/janusweb.js b/scripts/janusweb.js
index 568dd11a0d9fd626060d64de75a9b5045cbefd0b..
index ..f73f036de827af8ad2efb89c13374e3202cbb7f1 100644
--- a/scripts/janusweb.js
+++ b/scripts/janusweb.js
@@ -334,7 +334,7 @@ setTimeout(function() {
       }
     }
     this.showChat = function(ev) {
-      if (ev.value == 1) {
+      if (ev.value == 1 && document.activeElement != this.engine.client.ui.urlbar.inputelement) {
         this.chat.focus();
       }
     }

-----END OF PAGE-----