]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
only do kepress on outside of page for dtmf
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 24 Jul 2014 18:43:05 +0000 (23:43 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 24 Jul 2014 18:43:05 +0000 (23:43 +0500)
html5/verto/demo/verto.js

index b1777e252a25880e32194146c2a4c2fb003d6d97..52ffd640072a75a70a479e62a5fd7d819c6b8988 100644 (file)
@@ -430,10 +430,11 @@ function init() {
     });
 
     $(document).keypress(function(event) {
-       if (!cur_call) return;
+       if (!(cur_call && event.target.id == "page-incall")) return;
        var key = String.fromCharCode(event.keyCode);
        var i = parseInt(key);
 
+
        if (key === "#" || key === "*" || key === "0" || (i > 0 && i <= 9)) {
            cur_call.dtmf(key);
        }