mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 00:00:44 +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) {
|
||||
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…
x
Reference in New Issue
Block a user