<body onload="MIM.init_debug ()">
<h4>m17n-lib input method in Javascript</h4>
-<h4>textarea</h4>
-<textarea name="TEXTAREA"></textarea>
-<table><tr><td style="font-size: large; font-weight: bold;">text</td><td><form><input type="text"></form></td></tr></table>
+<table>
+<tr><th>textarea</th><td><textarea name="TEXTAREA"></textarea></td></tr>
+<tr><th>text</th><td><form><input type="text"></form></td></tr></table>
<div style="font-weight: bold;">debug Info</div>
<table border="1">
<tr><th>key</th><th>keycode</th><th>status</th><th>keymap</th><th>preedit</th></tr>
<tr><th>down</th><td id="keydown">0</td><td id="status0"><td id="keymap0"></td><td id="preedit0"></td></tr>
<tr><th>press</th><td id="keypress">0</td><td id="status1"><td id="keymap1"></td><td id="preedit1"></td></tr>
</table>
-<textarea style="font-size: small; width: 100%" rows="10"id="log"></textarea>
+<textarea style="font-size: small; width: 100%" rows="10" id="log"></textarea>
</body>
function Fpushback (domain, vari, args)
{
- var arg = (args[0].IsInt ? args[0].Intval
- : args[0].IsStr ? new KeySeq (args[0])
- : args[0]);
- domain.context.pushback (arg)
+ var a = (args[0].IsInt ? args[0].Intval
+ : args[0].IsStr ? new KeySeq (args[0])
+ : args[0]);
+ Xex.Log ("pushing back: " + a);
+ domain.context.pushback (a);
+ Xex.Log ("head key: " + domain.context.keys[domain.context.key_head]);
return args[0];
}