I am trying to detect if the control key has been pressed to change
and action. I am using the latest proto build.
Here is my code:
<script type="text/javascript">
document.observe('keydown', function(k) {
if (k.keyCode != 17) return;
alert('ctrl');
});
</script>
I have noticed that not always on keydown does it register, it comes
to about every other time.
Can you offer any advice.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---