From: Anthony Minessale Date: Thu, 24 Jul 2014 18:43:05 +0000 (+0500) Subject: only do kepress on outside of page for dtmf X-Git-Tag: v1.4.8~10^2~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd804df7a38917cc88cc5bce8463af20e75931b6;p=thirdparty%2Ffreeswitch.git only do kepress on outside of page for dtmf --- diff --git a/html5/verto/demo/verto.js b/html5/verto/demo/verto.js index b1777e252a..52ffd64007 100644 --- a/html5/verto/demo/verto.js +++ b/html5/verto/demo/verto.js @@ -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); }