gecko/dom/inputmethod/mochitest/file_inputmethod.html
Yuan Xulei 9855b74ed0 Bug 944397 - Process SetInputMethodActive request until content window is ready. r=fabrice
--HG--
extra : rebase_source : 330dbbe63646b2b08a3b6eded27c85714361044a
2013-12-20 16:01:18 +08:00

19 lines
389 B
HTML

<html>
<body>
<script>
var im = navigator.mozInputMethod;
if (im) {
// Automatically append location hash to current input field.
im.oninputcontextchange = function() {
var ctx = im.inputcontext;
if (ctx) {
intervalId = setTimeout(function() {
ctx.replaceSurroundingText(location.hash);
}, 0);
}
};
}
</script>
</body>
</html>