mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
9855b74ed0
--HG-- extra : rebase_source : 330dbbe63646b2b08a3b6eded27c85714361044a
19 lines
389 B
HTML
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>
|