mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-17 17:22:21 +00:00
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) {
|
$(document).keypress(function(event) {
|
||||||
if (!cur_call) return;
|
if (!(cur_call && event.target.id == "page-incall")) return;
|
||||||
var key = String.fromCharCode(event.keyCode);
|
var key = String.fromCharCode(event.keyCode);
|
||||||
var i = parseInt(key);
|
var i = parseInt(key);
|
||||||
|
|
||||||
|
|
||||||
if (key === "#" || key === "*" || key === "0" || (i > 0 && i <= 9)) {
|
if (key === "#" || key === "*" || key === "0" || (i > 0 && i <= 9)) {
|
||||||
cur_call.dtmf(key);
|
cur_call.dtmf(key);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user