SimonS
2010-02-05 07:34:32 UTC
Hi,
The following works for me in IE, Chrome and Safari, but fails in
FireFox 3.6 (running on Vistax64). The 'key down' event just doesn't
seem to get received:
=============================
<html>
<head>
<script type='text/javascript' src='MochiKit.js'></script>
<script type='text/javascript'>
addLoadEvent(function() {
connect(document.body, 'onkeydown', function(evt) {
$('key').innerHTML = evt.key().string;
});
});
</script>
</head>
<body>
<h1>PRESS A KEY</h1>
<div id='key'></div>
</body>
</html>
===============================
It seems fairly simple - any idea what's wrong here?
Cheers,
Simon.
The following works for me in IE, Chrome and Safari, but fails in
FireFox 3.6 (running on Vistax64). The 'key down' event just doesn't
seem to get received:
=============================
<html>
<head>
<script type='text/javascript' src='MochiKit.js'></script>
<script type='text/javascript'>
addLoadEvent(function() {
connect(document.body, 'onkeydown', function(evt) {
$('key').innerHTML = evt.key().string;
});
});
</script>
</head>
<body>
<h1>PRESS A KEY</h1>
<div id='key'></div>
</body>
</html>
===============================
It seems fairly simple - any idea what's wrong here?
Cheers,
Simon.
--
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to ***@googlegroups.com.
To unsubscribe from this group, send email to mochikit+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en.
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to ***@googlegroups.com.
To unsubscribe from this group, send email to mochikit+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en.