only do kepress on outside of page for dtmf
This commit is contained in:
parent
acffa7961b
commit
bd804df7a3
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue