Confirmed users
478
edits
Line 243: | Line 243: | ||
* Rather rely on entry points in manifest... | * Rather rely on entry points in manifest... | ||
*/ | */ | ||
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) { | ||
Line 260: | Line 260: | ||
}, 1000); | }, 1000); | ||
} | } | ||
function stopTyping() { | function stopTyping() { | ||
clearTimeout(timer); | clearTimeout(timer); | ||
} | } | ||
var im = navigator.inputMethod; | var im = navigator.inputMethod; | ||
im.addEventListener('inputcontextchange', function contextchanged(evt) { | im.addEventListener('inputcontextchange', function contextchanged(evt) { | ||
if (evt.inputcontext) { | if (evt.inputcontext) { | ||
Line 276: | Line 276: | ||
} | } | ||
}); | }); | ||
if (im.inputcontext) { | if (im.inputcontext) { | ||
// The webpage here is loaded *after* the user has place the focus on the text field, | // The webpage here is loaded *after* the user has place the focus on the text field, |