diff --git a/html5/verto/demo/verto.js b/html5/verto/demo/verto.js index b770a7c394..b1777e252a 100644 --- a/html5/verto/demo/verto.js +++ b/html5/verto/demo/verto.js @@ -429,6 +429,16 @@ function init() { } }); + $(document).keypress(function(event) { + if (!cur_call) return; + var key = String.fromCharCode(event.keyCode); + var i = parseInt(key); + + if (key === "#" || key === "*" || key === "0" || (i > 0 && i <= 9)) { + cur_call.dtmf(key); + } + }); + }