Confirmed users
478
edits
m (→Examples) |
|||
Line 190: | Line 190: | ||
clearTimeout(timer); | clearTimeout(timer); | ||
timer = setInterval(function typing() { | timer = setInterval(function typing() { | ||
if (inputContext.inputmode = 'numeric' || inputContext.type = 'number') { | if (inputContext.inputmode === 'numeric' || inputContext.type === 'number') { | ||
['1', '3', '3', '7'].forEach(function (k) { | ['1', '3', '3', '7'].forEach(function (k) { | ||
// For numbers, keyCode is same as the charCode. | // For numbers, keyCode is same as the charCode. |