Does it stop propagation of other keys? If so I doubt there's much you
can do about this. Maybe IE instantly fires two events - one on the
specific element which bubbles up and another straight to IE itself.
I'd say it would be confusing to users to alter the action of the alt
key anyway. If I used the alt key regularly to access the file menu
then you stopped it from doing that, that would get me pissed with
your website. Sorry if that's not particularly what you wanted to

On Sep 16, 10:40 pm, kukipei <[EMAIL PROTECTED]> wrote:
> Hi to all,
> I want to stop propagation of alt keyup event.
> This is a part of the code:
> Event.observe(document, 'keyup', function(event)
> {
> Event.stop(event);
>         if (event.keyCode == 18)//alt key
>         {
>                 if($('temp_1_2').disabled == false)
>                 {
>                         if (pointerForSmoke == 0)
>                         {
>                                 set_crack_s1($('first_smoke'));
>                                 pointerForSmoke++;
>                         }
>                         else if(pointerForSmoke == 1) .....
> It works fine with ff3 and safari, but it is nor working with IE7.
> When I press alt key it selects file button in menu bar. How can I
> override this.
> I am using prototype 1.6.
> Best Regards,
> Predrag
You received this message because you are subscribed to the Google Groups 
"Prototype &" group.
To post to this group, send email to
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at

Reply via email to