mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
21 lines
504 B
HTML
21 lines
504 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<body>
|
|
<script>
|
|
var im = navigator.mozInputMethod;
|
|
if (im) {
|
|
im.oninputcontextchange = function() {
|
|
var ctx = im.inputcontext;
|
|
// Report back to parent frame on status of ctx gotten.
|
|
window.postMessage(window.location.hash + !!ctx, '*');
|
|
// If there is a context, send out the hash.
|
|
if (ctx) {
|
|
ctx.replaceSurroundingText(location.hash);
|
|
}
|
|
};
|
|
}
|
|
</script>
|
|
<p>This frame represents the input method frame.</p>
|
|
</body>
|
|
</html>
|