{
debug(w + ' keyCode=' + keyval(e.keyCode) +
' which=' + keyval(e.which) +
- ' charCode=' + keyval(e.charCode));
- debug(' shiftKey='+e.shiftKey
+ ' charCode=' + keyval(e.charCode) +
+ '\n shiftKey='+e.shiftKey
+ ' ctrlKey='+e.ctrlKey
+ ' altKey='+e.altKey
+ ' metaKey='+e.metaKey);
function debug(txt)
{
// internet explorer (v.9) doesn't work with innerHTML
+ // but google chrome's innerText is, in a sense, "write only"
+ // what should we do?
logarea.innerText = txt + "\n" + logarea.innerText;
}